|
-
Apr 10th, 2002, 11:28 PM
#1
Thread Starter
Hyperactive Member
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
Amon Ra
The Power of Learning.
-
Apr 11th, 2002, 08:25 AM
#2
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)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 11th, 2002, 08:46 AM
#3
For XP it's also 0x500, just like Win2K.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|