Simple menu (alternate)

Posts 1–13 of 13 · Page 1 of 1
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 @Ryuzaki2 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]
xn_resourceeditor_setup.zip1.1 MB · 104 downloads Scanning…
nice tut, i will try it now
Quote Originally Posted by Coder[Vb10e] View Post
nice tut, i will try it now
its not approved yet
Quote Originally Posted by giniyat101 View Post
its not approved yet
i use visual studio, and i can add resources
Good Job - i Like ur Tutorials Bro
Class! Thank you !
Nice tutorial!
Very nice tut indeed. Think I've seen this once before as well.
When will it be approved?
bump.. because every one bumps 3 years old topic, iam bumping 3 weeks only xD
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us