Results 1 to 3 of 3

Thread: window version

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3
    jim mcnamara
    Guest
    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
  •  



Click Here to Expand Forum to Full Width