hanneswes wrote: > How do I conditionally define if the OS is Win98, WinXP and how do I > determine whether, when using WinXP, the display properties - > (appearance for windows and buttons) is Windows Classic style or > Windows XP style > > Thanks in advance > Hannes
If you mean "theme" instead of "style", does the IsThemeActive() function in "uxtheme.dll" solve the problem? If that is the solution you are looking for, the best approach to implementing this in code is to _dynamically_ load the library "uxtheme.dll" with LoadLibrary() and use GetProcAddress() on IsThemeActive() and then call IsThemeActive(). If all the function calls succeed, then themes are enabled on the target OS - Win98 or otherwise. Otherwise, the OS does not support themes. This is what Microsoft recommends doing instead of trying to detect the OS using functions like GetVersion()/GetVersionEx(). -- Thomas Hruska ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

