-
window version
i am defining a list of flags..how would i have a check the version of windows to know if it is necessaray to define the flags?
Code:
#if WindowVersion >= win2000
#define X_TRANSPARENT
#endif
you get the idea, right? how would i do that?
thanks in advance
-
There is the WINVER macro, which is set to 0x0400 in Win95 and NT4, to 0x0500 in Win98 and 2k and (probably) 0x0600 in XP.
by default, it is set to 0x0400, so the apps maintain compatibility to Win95/NT4, but you can #define it to 0x0500 if you want Win98/2k functions and flags (like DC_GRADIENT in the DrawCaption function, which causes DrawCaption to draw the caption in a Win98 style with the color gradient)
-
For XP it's also 0x500, just like Win2K.