Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alpha blending

Status
Not open for further replies.

imagenetics

Programmer
Dec 8, 2003
66
PL
I'm writing a program which uses alpha blending for drawing forms. But as far as I know this feature is not available on Windows Me and lower.
How can I verfy if my program is currently running on Windows 2000 or XP (these support semi-transparency) or on a non-alpha system?
Or maybe Builder's programs automatically skip alpha procedures if not supported? But I have one function attached to a timer to fade-in a form when activated, so I suppose I have to check somehow if current OS supports it?
 
You need to retrieve Windows version. In Builder, it's a global "int Win32Platform" variable.
If it's VER_PLATFORM_WIN32_NT, than it's an NT derivative, usually 2000/XP nowadays.
For more detailed info look at the Win32API help on this subject.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top