-
Ok changed all of them to different numbers. Still spit the same error on ltext. So then I took a look at each of the lines that the errors came up on when commented out and on to next line. The ltext lines had idc_static in them and there was no idc_static in the .h file. Borland has that defined in one of their .h include files. So I added idc_static to the .h file and added .a libs ../lib/libwin32k.a and ../lib/libcomctl32.a
Got it working. Seems to work ok. So idc_static is not defined in devcpp? .h include files?
It may take some time to get to know this compiler.
-
IDC_STATIC is an arbitrary value, you can use
Code:
#define MYSTATICCONTROLS 1000//here 1000 is also an arbitrary value
//then you can do:
LTEXT "Brush:",MYSTATICCONTROLS,25,25,20,14
I think that the idea of setting up a common defined value for those controls is because usually you won't access them; instead of that, a button need it's own value to be able to work with it via the WM_COMMAND message. Then, if you know that no other control have an id=0 and that you won't acces to some controls, then you can declare them as
Code:
LTEXT "Brush:",0,25,25,20,14
Niara