MC55 WM6.5 Volume Up/Down windows messages

Hi Everybody,
please does someone know how to catch windows messages from Volume Up&Down buttons on MC55's Windows Mobile 6.5 device?
Standart WM_KEYDOWN or WM_SYSKEYDOWN messages don't work for these buttons.
I need it for the service test application written in C++
Thanks in Advance for your help!

Hi, I don't remember exactly as it has been about 8 years but the source code for the part of rhodes which blocks the volume keys or makes them capturable (and all function keys, Volume is F6/F7 I think) is here: https://github.com/rhomobile/rhodes/blob/master/lib/commonAPI/hardwarekeys/ext/platform/wm/src/KeyModule.cpp .  Note the call to AllKeys(TRUE) which I think is the critical difference.  Hope that helps, sorry I can't give a definitive answer but as I say, it has been a while since I worked on this code.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Hi Darryn, thank you for your reply.
I have tried your recommendation with AllKeys(TRUE); and also this from your KeyModule.cpp:

// Iterate through the function keys
for (int i=VK_F1; i<=VK_F24; i++)
{
//unregister the key then register it with our app
procUndergisterFunc(0, i);
procUndergisterFunc(MOD_WIN, i); // Necessary to block OK button
UnregisterHotKey(0, i);
bRet = RegisterHotKey(hwndToRegisterFor, i, 0, i);
}

But nothing seem to work to enable messages from F6/F7 (volume) buttons.
However I can see the buttons are changing the windows volume properly.
Please do you have any other idea?
Thanks!

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’