Re: Caps Lock setting
- From: steve@xxxxxxxxxxxxxxxxxxxx
- Date: Wed, 12 Jul 2006 17:26:30 +0100
On 12 Jul 2006 08:46:24 -0700, "Ajay Kalra" <ajaykalra@xxxxxxxxx>
wrote:
How do I find out if Caps Lock is on when a document is opened? It's
easy if the key is pressed when the document has been opened but how
do I check if the Caps Lock key has already been set on before the
document is opened and even before the application is loaded?
GetKeyState(VK_CAPITAL) should do what you want. Heres more:
That's what I am doing now in InitDocument. I would expect the most
significant bit to be set when the Caps Lock is on but
GetKeyState(VK_CAPITAL) always returns zero. When the document is open
the same code in OnKeyDown works OK but I need to know the state of
the Caps Key before the document is opened.
--
Steve Wolstenholme Neural Planner Software
EasyNN-plus. The easy way to build neural networks.
http://www.easynn.com
.
- Follow-Ups:
- Re: Caps Lock setting
- From: Joseph M . Newcomer
- Re: Caps Lock setting
- From: David Ching
- Re: Caps Lock setting
- References:
- Caps Lock setting
- From: steve
- Re: Caps Lock setting
- From: Ajay Kalra
- Caps Lock setting
- Prev by Date: Re: Is MSDN wrong? or I made a mistake? about static member function
- Next by Date: Re: replacing unsigned char * with CString
- Previous by thread: Re: Caps Lock setting
- Next by thread: Re: Caps Lock setting
- Index(es):
Relevant Pages
|