Click here to Skip to main content
15,921,548 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Save File Dialog Creation Pin
Michael Dunn8-Feb-03 14:39
sitebuilderMichael Dunn8-Feb-03 14:39 
GeneralRe: Save File Dialog Creation Pin
orcblood9-Feb-03 7:01
orcblood9-Feb-03 7:01 
QuestionHow to get Key name from Vitrual-Key code? Pin
Aidman8-Feb-03 13:40
Aidman8-Feb-03 13:40 
AnswerRe: How to get Key name from Vitrual-Key code? Pin
KaЯl9-Feb-03 21:40
KaЯl9-Feb-03 21:40 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
Aidman10-Feb-03 10:23
Aidman10-Feb-03 10:23 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
KaЯl11-Feb-03 4:53
KaЯl11-Feb-03 4:53 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
Aidman11-Feb-03 8:50
Aidman11-Feb-03 8:50 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
KaЯl11-Feb-03 21:39
KaЯl11-Feb-03 21:39 
The GeyKeyNameText takes as first parameter lParam.
MSDN says:
lParam
[in] Specifies the second parameter of the keyboard message (such as WM_KEYDOWN) to be processed. The function interprets the following portions of lParam.
Bits Meaning
16–23 Scan code.
24 Extended-key flag. Distinguishes some keys on an enhanced keyboard.
25 "Don't care" bit. The application calling this function sets this bit to indicate that the function should not distinguish between left and right CTRL and SHIFT keys, for example.

the operation <<16 (shifting 16 bits to the left) sets the bits 16 to 23. The operation |= 0x01000000 sets the extendey key flag, the bit 24.
If you look in MSDN to the description of WM_KEYDOWN, you'll see that the bits 0 to 15 are used to set the repeat count. Here it's done with the |0x1
This last operation is probably useless, 'cause it should not be interpreted by GetKeyNameText.

HTH,

K.






Angels banished from heaven have no choice but to become demons
Cowboy Bebop

GeneralRe: How to get Key name from Vitrual-Key code? Pin
Aidman12-Feb-03 5:26
Aidman12-Feb-03 5:26 
GeneralRe: How to get Key name from Vitrual-Key code? Pin
KaЯl12-Feb-03 5:32
KaЯl12-Feb-03 5:32 
GeneralWM_NCHITTEST in Dialog Box Pin
Silmeron8-Feb-03 12:48
Silmeron8-Feb-03 12:48 
GeneralRe: WM_NCHITTEST in Dialog Box Pin
Nish Nishant8-Feb-03 13:29
sitebuilderNish Nishant8-Feb-03 13:29 
GeneralRe: WM_NCHITTEST in Dialog Box Pin
Silmeron8-Feb-03 16:04
Silmeron8-Feb-03 16:04 
GeneralError displaying CFrameWnd Pin
raner8-Feb-03 8:00
raner8-Feb-03 8:00 
GeneralRe: Error displaying CFrameWnd Pin
User 98858-Feb-03 8:52
User 98858-Feb-03 8:52 
Generalhelp needed on CView and CFrameWnd Pin
raner8-Feb-03 18:42
raner8-Feb-03 18:42 
GeneralRe: help needed on CView and CFrameWnd Pin
User 988510-Feb-03 2:57
User 988510-Feb-03 2:57 
GeneralMFC memory Leak Pin
User 98858-Feb-03 7:37
User 98858-Feb-03 7:37 
GeneralRe: MFC memory Leak Pin
User 98858-Feb-03 7:49
User 98858-Feb-03 7:49 
GeneralRe: MFC memory Leak Pin
Michael Dunn8-Feb-03 9:54
sitebuilderMichael Dunn8-Feb-03 9:54 
GeneralRe: MFC memory Leak Pin
User 98858-Feb-03 10:02
User 98858-Feb-03 10:02 
GeneralRichEdit question ! Pin
Hadi Rezaee8-Feb-03 7:34
Hadi Rezaee8-Feb-03 7:34 
QuestionHow to get an added class to shwo up in class wizard Pin
nss8-Feb-03 2:29
nss8-Feb-03 2:29 
QuestionWhat is wrong with these SQL statements?? Pin
IrishSonic8-Feb-03 0:26
IrishSonic8-Feb-03 0:26 
AnswerRe: What is wrong with these SQL statements?? Pin
vin8-Feb-03 1:08
vin8-Feb-03 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.