IsAppThemed not work in my Vista business.
How resolve?
Many thanks in advance.
IsAppThemed
- Antonio Linares
- Site Admin
- Posts: 42518
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Ugo,
You need to have a main window or dialog already created:
And have this in your RC:
Here it is working fine
You need to have a main window or dialog already created:
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oWnd
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd ;
ON INIT MsgInfo( IsAppThemed() )
return nil
And have this in your RC:
Code: Select all | Expand
1 24 "WindowsXP.Manifest"
Here it is working fine
Dear Antonio,
if I have understood well:
but in my Vista business don't work, is the same with your sample.
if I have understood well:
Code: Select all | Expand
FUNCTION TestAppThemed()
LOCAL oDlg, lAppThem := .F.
DEFINE DIALOG oDlg
oDlg:bStart = { || lAppThem := IsAppThemed(),;
MsgInfo( IF( lAppThem, "Vista with Theme", "Vista without theme" ), "Test theme" ),;
oDlg:End() }
ACTIVATE DIALOG oDlg
return lAppThem
but in my Vista business don't work, is the same with your sample.
Ciao, best regards,
Ugo
Ugo