| View previous topic :: View next topic |
| Author |
Message |
Tom de Neef Guest
|
Posted: Thu Feb 02, 2006 6:21 pm Post subject: Bypassing startup sequence |
|
|
I would like to offer the possibility of bypassing the standard startup
sequence of my application (eg loading the status as it was at last exit). I
thought that holding down Shift would be a convenient way. But how do I trap
that ? I have experimented with OnKeyDown but it is triggered only sometimes
and I do not understand the conditions under which the key down will be
checked.
Can anybody pls help.
Kind regards,
Tom
|
|
| Back to top |
|
 |
Rob Kennedy Guest
|
Posted: Thu Feb 02, 2006 6:46 pm Post subject: Re: Bypassing startup sequence |
|
|
Tom de Neef wrote:
| Quote: | I would like to offer the possibility of bypassing the standard startup
sequence of my application (eg loading the status as it was at last exit). I
thought that holding down Shift would be a convenient way. But how do I trap
that ? I have experimented with OnKeyDown but it is triggered only sometimes
and I do not understand the conditions under which the key down will be
checked.
|
Call GetAsyncKeyState to find out the state of any key. (GetKeyState
will tell you the state the key was in when the currently handled
message was retreived, which isn't useful since your program probably
isn't handling messages yet.)
--
Rob
|
|
| Back to top |
|
 |
Tom de Neef Guest
|
Posted: Thu Feb 02, 2006 7:12 pm Post subject: Re: Bypassing startup sequence |
|
|
"Rob Kennedy" <me3 (AT) privacy (DOT) net> schreef in bericht
news:44f2ckF1sctuU1 (AT) individual (DOT) net...
| Quote: | Tom de Neef wrote:
I would like to offer the possibility of bypassing the standard startup
sequence of my application (eg loading the status as it was at last
exit). I thought that holding down Shift would be a convenient way. But
how do I trap that ? I have experimented with OnKeyDown but it is
triggered only sometimes and I do not understand the conditions under
which the key down will be checked.
Call GetAsyncKeyState to find out the state of any key. (GetKeyState will
tell you the state the key was in when the currently handled message was
retreived, which isn't useful since your program probably isn't handling
messages yet.)
|
YES !
Thank you Rob.
Tom
|
|
| Back to top |
|
 |
|