Is there a way to check if someone uses "classical windows" desighn in XP or Vista ?
IsAppThemed() still returns .T.
In this case menu and messagebar are 2007 style, dialogs look "old" which gives a strange look in that combination.
Regards,
Dietmar
James Bott wrote:Is that an existing FW or Harbour function, or is it an API?
HTHEME OpenThemeData( HWND hwnd, LPCWSTR pszClassList );
function Main()
MsgInfo( IsThemeActive() )
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
typedef BOOL ( * PFISTHEMEACTIVE ) ( void );
HB_FUNC( ISTHEMEACTIVE )
{
HINSTANCE hDLL = LoadLibrary( "UxTheme.dll" );
PFISTHEMEACTIVE IsThemeActive;
if( hDLL == NULL )
{
hb_retl( FALSE );
return;
}
else
IsThemeActive = ( void * ) GetProcAddress( hDLL, "IsThemeActive" );
if( IsThemeActive )
hb_retl( IsThemeActive() );
else
hb_retl( FALSE );
FreeLibrary( hDLL );
}
#pragma ENDDUMP
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Surasak and 34 guests