Homescreen current theme

Similar to the PocketPC forum, the Smartphone forum focuses on topics related to the Smartphone development.
[C++ development]

Moderators: Teksoft, admin

Homescreen current theme

Postby Nebula » Fri May 05, 2006 7:17 pm

Hi all, how can I know which is the currently selected theme on a smartphone with WM 2005?
Nebula
TEK-Newbie
TEK-Newbie
 
Posts: 9
Joined: Thu Apr 20, 2006 12:23 am

re:

Postby radhoo » Fri May 05, 2006 7:24 pm

Dear Nebula,

There is a registry key that contains the data you need:

HKEY_CURRENT_USER\\ControlPanel\\Home try accessing 'Scheme' as a STRING.

Cheers,
Radu
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Re:

Postby radhoo » Fri May 05, 2006 7:26 pm

a piece of old code...

TCHAR currentScheme[MAX_PATH];
//get current scheme
HKEY m_hKey;
DWORD nRegKeyValueSize = 0x600;
TCHAR szRegKeyValue[MAX_LOADSTRING];
DWORD dwType = REG_SZ;
DWORD dwDisposition;

RegCreateKeyEx(HKEY_CURRENT_USER, TEXT("\\ControlPanel\\Home"),0,NULL,0,0,NULL, &m_hKey, &dwDisposition);

RegQueryValueEx(m_hKey,TEXT("Scheme"),NULL,&dwType,(PBYTE)szRegKeyValue, &nRegKeyValueSize);

_tcscpy(currentScheme,(LPCTSTR) szRegKeyValue);

RegCloseKey(m_hKey);


Cheers,
Radu
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am


Return to Smartphone

Who is online

Users browsing this forum: No registered users and 0 guests


cron