|
From: Mark L. W. <ma...@al...> - 2002-11-01 17:02:43
|
Randal, the #define is a compiler directive, not part of the language. The statement #define IDM_EDITUNDO 210 simply assigns a symbol (IDM_EDITUNDO= ) the value of "210". You can think of this as doing a global find/replace= of IDM_EDITUNDO with 210 (thats basically what the compiler does). In windows, you assign values to events, so this statement is probably assigning 210 as the event number for the Edit Undo command. Later in th= e code you should see an event list referencing the IDM_EDITUNDO value and executing a function that implements edit undo. As for a book, when you find one, let ME know.... ;-) I have found www.howstuffworks.com that has some great tutorial material. Hope this helps! Mark -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Randal Eck Sent: Friday, November 01, 2002 8:32 AM To: dev...@li... Subject: [Dev-C++] c++ widows, menus I am taking a course online about Visual C++, but would still like to k= now about C++ so I can create stuff for Linux. I am trying to learn C++ by studying the examples in Dev C++ 4. I must admit I feel lost learning thi= s way. With a Visual IDE all this stuff is taken care of. Here is an exampl= e from the Dev C++ and so far I can figure out that #define IDM_EDITUNDO 210 #define is a command or keyword (no problem) IDM is IDMenu, I think 210 I have no idea about. I have read a couple books about C++ but thet don=92t deal with creatin= g windows, menus or anything related to a GUI. Can u suggest a few good boo= ks on they subject. Maybe a website. Thanks -------------------------------------------------------------------------= --- -- Choose an Internet access plan right for you -- try MSN! Click Here ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Colo= r in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm000= 1en _______________________________________________ Dev-cpp-users mailing lis= t Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |