Results 1 to 13 of 13
  1. #1
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead

    Simple menu (alternate)

    i see there is a lots of complains like (missing file afxres.h) and (i cant select add resource) and a lot more
    i decided to show you an alternate way

    first i'd like to say thanks to @xmen for reminding me this

    lets start

    make a new project and grab the source from the original thread

    you can also make your own base, but dont forget to include the file with a #include "resource.h"
    then install and start XN resource editor (from the attachments)

    click Add resource button or select Resource menu -> add resource and pick XP Manifest



    click the same button again just to add a dialog



    edit the dialog like you want , in this example, i will edit it like the previous thread, so i set
    caption to giniyat101 and minimize box to true



    next, add the controls, you will not be able to change the ID now, so we are going to do it later
    here is the finished dialog



    save it to your project folder, you can pick any name for it

    then in your project, right click the resource filer in solution explorer, and select add existing item and select your new .RES file created
    in XN resource editor





    next, add new .h file under header files filter and select resource.h as its name



    check XN resource editor back for the dialog box id and add its definition to resource.h file



    it is 1 in my case so i will add this line
    Code:
    #define IDD_DIALOG1     1
    expand the combo box and check the other controls ids



    so i will add this stuff:
    Code:
    #define IDC_BTNDO       1
    #define IDC_NORELOAD    2
    #define IDC_NOCHANGE    3
    that was the last step, compile and see what will happen


    VS: [X] [X]
    <b>Downloadable Files</b> Downloadable Files
    Last edited by giniyat101; 04-02-2012 at 05:38 AM.


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  2. The Following 20 Users Say Thank You to giniyat101 For This Useful Post:

    -iFaDy..* (04-06-2012),alvin1234 (05-01-2012),ayawmanmik (04-24-2012),Coder[Vb10e] (04-02-2012),costyaniti (05-06-2012),darlwis (04-02-2012),Dead(H)ell (04-02-2012),DOOP (04-22-2012),eppi (04-02-2012),firefox800 (05-07-2012),hanamychy (04-06-2012),jeroldcamacho (09-16-2014),lucas123456 (04-27-2012),luDeRxD (05-01-2012),luizimloko (04-28-2012),MysteryCoder (04-28-2012),remzkee0903 (07-30-2012),Ryuzaki™ (04-02-2012),Sprite (04-29-2012),willcpc2 (04-27-2012)

  3. #2
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine
    nice tut, i will try it now

  4. #3
    -iFaDy..*'s Avatar
    Join Date
    Mar 2012
    Gender
    male
    Location
    C++/Mpgh.net/CF/devenv.exe
    Posts
    201
    Reputation
    22
    Thanks
    87
    My Mood
    Cool
    Good Job - i Like ur Tutorials Bro
    Need Any Help in C++/CrossFire? Just Pm me.

    My FB : Www.FaceBook.com/FaDiAtefAhlawy

    My Yahoo : Dodo_CrazyChat@yahoo.com

    My Hotmail : Dodo_CrazyChat@hotmail.com

  5. The Following User Says Thank You to -iFaDy..* For This Useful Post:

    giniyat101 (04-02-2012)

  6. #4
    CFhackerfree's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Germany
    Posts
    801
    Reputation
    22
    Thanks
    4,417
    My Mood
    Happy
    @giniyat101
    good job !!

    Approve pleas :-)

  7. #5
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by Coder[Vb10e] View Post
    nice tut, i will try it now
    its not approved yet


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

  8. #6
    eppi's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    75
    Reputation
    10
    Thanks
    5
    My Mood
    Goofy
    Class! Thank you !

  9. #7
    Coder[Vb10e]'s Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Crossfire Alaska
    Posts
    1,577
    Reputation
    -10
    Thanks
    349
    My Mood
    Fine
    Quote Originally Posted by giniyat101 View Post
    its not approved yet
    i use visual studio, and i can add resources

  10. #8
    Swag's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Netherlands
    Posts
    1,619
    Reputation
    19
    Thanks
    1,865
    My Mood
    Amused
    Nice tutorial!

  11. #9
    Katniss's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    92
    Reputation
    11
    Thanks
    13
    My Mood
    Aggressive
    Very nice tut indeed. Think I've seen this once before as well.


  12. #10
    Dead(H)ell's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    Earth
    Posts
    471
    Reputation
    37
    Thanks
    715
    My Mood
    Flirty
    @giniyat101 Very Good Job

  13. #11
    eppi's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    75
    Reputation
    10
    Thanks
    5
    My Mood
    Goofy
    When will it be approved?

  14. #12
    Hero's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    memes
    Posts
    40,134
    Reputation
    4764
    Thanks
    9,674
    Looks good. Approved.
    [] [] [] [][]

    Editor from 06•14•2011 • 2014
    Donator since 09•16•2011
    Minion from 10•10•2011 • 01•06•2011
    Minion+ from 01•06•2012 • 08•08•2012
    Moderator from 08•08•2012 • 10•06•2012
    Global Moderator from 10•06•2012 • 12•05•2017
    Staff Administrator from 12•05•2017 • 05•01•2019
    Trusted Member since 07•13•2019
    Global Moderator since 09•11•2020




  15. The Following User Says Thank You to Hero For This Useful Post:

    giniyat101 (04-02-2012)

  16. #13
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    bump.. because every one bumps 3 years old topic, iam bumping 3 weeks only xD


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

Similar Threads

  1. [Discussion] D3D Simple MENU
    By Lyoto Machida in forum C++/C Programming
    Replies: 17
    Last Post: 06-04-2011, 04:03 PM
  2. [Discussion] Simples menu + DrawBox = ????????
    By Alessandro10 in forum Combat Arms Coding Help & Discussion
    Replies: 13
    Last Post: 12-07-2010, 05:58 PM
  3. Simple Menu.....
    By ultahackers in forum Combat Arms Coding Help & Discussion
    Replies: 11
    Last Post: 10-09-2010, 08:55 AM
  4. HELP ->Void Simple Menu
    By dllbase in forum Combat Arms Coding Help & Discussion
    Replies: 2
    Last Post: 10-09-2010, 07:06 AM
  5. [Source]Simple menu class
    By Void in forum C++/C Programming
    Replies: 44
    Last Post: 10-04-2010, 08:21 PM