Click here to get back home

How to replace customize volume adjust program

 HomeNewsGroups | Search | About
 microsoft.public.smartphone    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to replace customize volume adjust program cnc1202 04-09-2008
Posted by cnc1202 on April 9, 2008, 1:44 am
Please log in for more thread options
I want to customize the volume program on smartphone, but I have
tried several way to customize volume program still not working.
I try to call SHNotificationAdd to replace the default volume. Below
is code segment.

        ZeroMemory(&m_pSHNOTIFICATIONDATA, sizeof (m_pSHNOTIFICATIONDATA));
m_pSHNOTIFICATIONDATA.cbStruct =
sizeof(SHNOTIFICATIONDATA);
m_pSHNOTIFICATIONDATA.dwID = OEMNOTIF_ID_I;
m_pSHNOTIFICATIONDATA.clsid =
CLSID_SHNAPI_OemNotif1;
m_pSHNOTIFICATIONDATA.npPriority = SHNP_INFORM;
m_pSHNOTIFICATIONDATA.csDuration = INFINITE;
m_pSHNOTIFICATIONDATA.pszTitle =
(LPCTSTR)TEXT("Custom");
m_pSHNOTIFICATIONDATA.pszHTML = (LPCTSTR)TEXT(" ");
m_pSHNOTIFICATIONDATA.hicon = LoadIcon(this-
>hInstance, MAKEINTRESOURCE(IDI_SOUND_ON));
m_pSHNOTIFICATIONDATA.grfFlags = SHNF_STRAIGHTTOTRAY
| SHNF_SILENT;
        m_pSHNOTIFICATIONDATA.hwndSink = hWnd;

LRESULT1 = SHNotificationAdd(&m_pSHNOTIFICATIONDATA);

After add notify, i found the icon always on title bar and didnt
change with different mode.(SoundOn,Vibarte,SoundOff).
And my program can't receive WM_NOTIFY when i press Volume Up/Down
key.

Is there any other way to customize default volume program??
Any hint will be great appreciated!!!

Similar ThreadsPosted
Adjust program memory? January 26, 2006, 7:21 pm
how to adjust volume level programmatically? August 10, 2006, 10:49 pm
Customize Tasks Options March 17, 2008, 1:15 pm
Pausing program execution and program focus April 6, 2006, 12:22 pm
Is it possible to replace Outlook for Syncing? January 21, 2008, 8:25 am
Dynamically replace menu toolbar August 6, 2007, 5:24 am
Clamshell to replace Audiovox 5600 Functionality? June 2, 2006, 6:24 pm
Is it possiable to complete replace smartdial feture? October 19, 2006, 4:21 am
Replace mobile number to a Text with GSM modem and AT commands July 30, 2005, 12:15 am
contact manager & agenda to replace Outlook & which syncs with WM 6 June 18, 2007, 9:26 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap