- Upper Case/ Lower Case Problem
- Posted by Raj Sharma on March 9th, 2005
I've recently been working a lot with the Key board messages, When a
key is pressed a system generates a WM_KEYDOWN/ WM_KEYUP message
containing the virtual key codes, Scan codes, Ascii codes (If a
Character key is pressed), etc.
Now the application message loop calls TranslateMessage(), which
takes this data and generates a WM_CHAR message, which has actual
character produced by the keypress. Now how does it knows whether the
character pressed is in Upper Case or Lower case.
I am using GetKeyState(VK_CAPITAL) to check for whether the Caps Lock
is ON/OFF, when i am giving some character input to the application,
It is checking for the ASCII Value and working accordingly, but it is
taking only Upper Case values, and I want Lower case display of the
Input character key pressed ,
how can i modify my code to get the desire O/P?
Ne valuable suggestions welcome.
Regards,
Raj
- Posted by r_z_aret@pen_fact.com on March 9th, 2005
On 9 Mar 2005 05:49:18 -0800, rakesh.bohara@gmail.com (Raj Sharma)
wrote:
clip
If you really just want to send lower case regardless of the case you
get, I suggest using tolower to convert. No need to worry about all
those other details.
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
- [Way OT] Anyone have ASCII ART using only 0-f or 0-F? (hex only, upper or lower case) (Microprocessors) by Rufus V. Smith
- Upper and lower case (Computers & Technology) by Ch. Rajinder Nijjhar Jatt
- Quark 6--Caps to Upper and Lower Case XT? (Graphics & Designing) by ThomJeff
- Upper and Lower case letters (Computers & Technology) by Ch. Rajinder Nijjhar Jatt
- upper case to lower case (Home and office) by MIDGE

