How do I register hot key for volume keys on WM6.5?
-
2012년 4월 21일 토요일 오전 1:48
Hi,
RegisterHotKey() always returns false when I try to register Volume keys as hot keys. Both volume keys exist on my Windows Mobile 6.5 device.
bool ret = RegisterHotKey(AfxGetMainWnd()->GetSafeHwnd(), 35, 0, VK_F7);
I try both VK_F7 and VK_TVOLUMEDOWN, but still returns false.
But when I try to register hot key for key 9, it returns true.
bool ret1 = RegisterHotKey(AfxGetMainWnd()->GetSafeHwnd(), 25, 0, 0x39);
- 편집됨 MaseCE 2012년 4월 21일 토요일 오전 1:48
모든 응답
-
2012년 4월 23일 월요일 오전 9:31중재자
Hello,
How about set VK_TVOLUMEUP with hex value
bool ret = RegisterHotKey(AfxGetMainWnd()->GetSafeHwnd(), 35, 0, 0x75);
Or 0x76Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
-
2012년 4월 23일 월요일 오후 6:34
Hi Jesse, thanks for the reply. I tried both hex values and they don't seem to work because both return back as false.
-
2012년 4월 24일 화요일 오전 8:06중재자
What's the value of GetLastError() function.
http://msdn.microsoft.com/en-us/library/aa911366.aspx
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us

