| |||||||
| Smartphones This is the Microsoft General Public Smartphones Newsgroup. |
![]() |
| | LinkBack | Thread Tools |
| |||
| How to replace customize volume adjust program 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!!! |
![]() |
| Bookmarks |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adjust volume for each window/application? | LeiRud | Windows XP | 2 | 06-27-2007 08:20 AM |
| Customize "Find and Replace" | Crudduncan | Microsoft Office | 0 | 04-16-2007 06:00 AM |
| Unable to adjust modem volume | PRNole | Windows XP | 0 | 03-06-2007 03:30 PM |
| Volume Control Program | gjt | Windows XP | 4 | 01-04-2007 02:45 AM |
| Laptop making strange sounds when I adjust the volume. | =?Utf-8?B?QmlsbA==?= | Windows XP Tablet PC Newsgroup | 1 | 05-26-2004 09:10 PM |