Home > Archive > Smartphone Developer Forum > April 2006 > Override back key
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Gernot Frisch 2006-04-20, 7:07 pm |
| I have a simple window. No dialog, no controls, no nothing. Just a
window.
Which window do I send the SHCMBM_OVERRIDEKEY message to? Mine?
SHFindMenuBar(mine)? SHFindMenuBar(someone_else_s)?
<blink, blink>
Somehow I don't get it.
Problem is: If you press the back button too quick (or my program is
too slow to handle GetAsyncKeyState(VK_TBACK)), the window is 'gone'.
I can't see it in the task manager, _but_ the process is running. I
see this with the rapi toys.
--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}
________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
| |
| Norman Diamond 2006-04-20, 10:04 pm |
| Using my hwnd:
SendMessage(SHFindMenuBar(hwnd),
SHCMBM_OVERRIDEKEY, VK_TBACK,
MAKELPARAM((SHMBOF_NODEFAULT | SHMBOF_NOTIFY),
(SHMBOF_NODEFAULT | SHMBOF_NOTIFY)));
"Gernot Frisch" <Me@Privacy.net> wrote in message
news:4apopqFtfij7U1@individual.net...
>I have a simple window. No dialog, no controls, no nothing. Just a window.
>
> Which window do I send the SHCMBM_OVERRIDEKEY message to? Mine?
> SHFindMenuBar(mine)? SHFindMenuBar(someone_else_s)?
> <blink, blink>
> Somehow I don't get it.
>
> Problem is: If you press the back button too quick (or my program is too
> slow to handle GetAsyncKeyState(VK_TBACK)), the window is 'gone'. I can't
> see it in the task manager, _but_ the process is running. I see this with
> the rapi toys.
>
> --
> -Gernot
> int main(int argc, char** argv) {printf ("%silto%c%cf%cgl%ssic%ccom%c",
> "ma", 58, 'g', 64, "ba", 46, 10);}
>
> ________________________________________
> Looking for a good game? Do it yourself!
> GLBasic - you can do
> www.GLBasic.com
>
>
|
|
|
|
|