Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: seekg() and streampos, C++ Pin
C_Zealot3-Jun-07 23:34
C_Zealot3-Jun-07 23:34 
AnswerRe: seekg() and streampos, C++ Pin
Rajkumar R4-Jun-07 2:02
Rajkumar R4-Jun-07 2:02 
QuestionDirectory Search Sort Order Pin
Kaylin1-Jun-07 16:26
Kaylin1-Jun-07 16:26 
AnswerRe: Directory Search Sort Order Pin
Mark Salsbery2-Jun-07 5:34
Mark Salsbery2-Jun-07 5:34 
Questionsystemtray icon Pin
locoone1-Jun-07 16:04
locoone1-Jun-07 16:04 
AnswerRe: systemtray icon Pin
Mark Salsbery2-Jun-07 5:42
Mark Salsbery2-Jun-07 5:42 
AnswerRe: systemtray icon Pin
Hamid_RT2-Jun-07 20:26
Hamid_RT2-Jun-07 20:26 
QuestionExtracting lparam from WM_KEYDOWN MSG Pin
aquawicket1-Jun-07 12:47
aquawicket1-Jun-07 12:47 
I have PretranslateMessage() that checks for WM_KEYDOWN message to capture keystrokes.
Then I do my processing from the code it gives me..

int key = (151 + HIWORD (pMsg->lParam) & 0x00ff);

All works great, but I want to be able to test it to see if it's a repeat key before processing.
That is, if the key is held down, I don't want the repeats to get through.

How can I extract lparam bits into a var to see if the message is a repeat key?
I beleive 0-15 in lparam tell repeat status.

Sorry, I get kinda stumped when I get into working with data on bit and byte level.
Thanks...


AnswerRe: Extracting lparam from WM_KEYDOWN MSG Pin
Mark Salsbery1-Jun-07 13:39
Mark Salsbery1-Jun-07 13:39 
GeneralRe: Extracting lparam from WM_KEYDOWN MSG Pin
aquawicket1-Jun-07 13:43
aquawicket1-Jun-07 13:43 
GeneralRe: Extracting lparam from WM_KEYDOWN MSG Pin
Mizan Rahman12-Aug-13 23:24
Mizan Rahman12-Aug-13 23:24 
QuestionUploading file via HTTP Pin
BitWare1-Jun-07 10:09
BitWare1-Jun-07 10:09 
QuestionRe: Uploading file via HTTP Pin
David Crow1-Jun-07 10:19
David Crow1-Jun-07 10:19 
AnswerRe: Uploading file via HTTP Pin
BitWare1-Jun-07 10:29
BitWare1-Jun-07 10:29 
GeneralRe: Uploading file via HTTP Pin
David Crow1-Jun-07 10:33
David Crow1-Jun-07 10:33 
QuestionInterop couse in c++ Pin
includeh101-Jun-07 5:10
includeh101-Jun-07 5:10 
AnswerRe: Interop couse in c++ Pin
Mark Salsbery1-Jun-07 5:29
Mark Salsbery1-Jun-07 5:29 
QuestionProgrammatically find the version of MMC installed Pin
Mushtaque Nizamani1-Jun-07 4:33
Mushtaque Nizamani1-Jun-07 4:33 
QuestionRe: Programmatically find the version of MMC installed Pin
David Crow1-Jun-07 5:30
David Crow1-Jun-07 5:30 
AnswerRe: Programmatically find the version of MMC installed Pin
Mushtaque Nizamani1-Jun-07 5:34
Mushtaque Nizamani1-Jun-07 5:34 
QuestionRe: Programmatically find the version of MMC installed Pin
David Crow1-Jun-07 7:06
David Crow1-Jun-07 7:06 
QuestionBitmaps in a dialog Pin
SimplCodr1-Jun-07 4:10
SimplCodr1-Jun-07 4:10 
AnswerRe: Bitmaps in a dialog Pin
includeh101-Jun-07 5:15
includeh101-Jun-07 5:15 
GeneralRe: Bitmaps in a dialog Pin
SimplCodr1-Jun-07 6:36
SimplCodr1-Jun-07 6:36 
GeneralRe: Bitmaps in a dialog Pin
Mark Salsbery1-Jun-07 6:42
Mark Salsbery1-Jun-07 6:42 

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.