Button action WM_GETTEXT
I would like to associate an action with a PocketPC button (the largest button in the center - I don't know what it's called). I tried to bind the action to the WM_GETTEXT message, but this message is sent every time a key is pressed and doesn't know how to add the action to only a specific button. Does anyone know how this can be done?
Thank!
source to share
Are you talking about the Action button in the middle of the d-pad? Each device has its own hardware layout; there is no such thing as the "largest button in the center" common to all devices. Perhaps you can post an image?
Anyway, take a look at this page: Keys and Code Codes for Windows Mobile .
Also, WM_GETTEXT
definitely not the message you want to process. Its purpose is to get the "window text" of a window (button title, edit control content, etc.).
You have to process WM_KEYDOWN
/ WM_KEYUP
or WM_CHAR
. Also, you can look at Accelerators .
source to share