Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you const your references? Pin
TheGreatAndPowerfulOz6-Oct-11 7:07
TheGreatAndPowerfulOz6-Oct-11 7:07 
GeneralRe: How do you const your references? Pin
Stefan_Lang6-Oct-11 22:07
Stefan_Lang6-Oct-11 22:07 
AnswerRe: How do you const your references? Pin
«_Superman_»6-Oct-11 6:05
professional«_Superman_»6-Oct-11 6:05 
QuestionPostMessage with WPARAM does not work Pin
Vaclav_5-Oct-11 17:43
Vaclav_5-Oct-11 17:43 
AnswerRe: PostMessage with WPARAM does not work Pin
Richard MacCutchan5-Oct-11 21:39
mveRichard MacCutchan5-Oct-11 21:39 
AnswerRe: You can't simulate keyboard input with PostMessage Pin
Software_Developer5-Oct-11 21:50
Software_Developer5-Oct-11 21:50 
AnswerRe: PostMessage with WPARAM does not work Pin
Vaclav_5-Oct-11 23:21
Vaclav_5-Oct-11 23:21 
GeneralRe: PostMessage with WPARAM does not work Pin
enhzflep6-Oct-11 1:10
enhzflep6-Oct-11 1:10 
I just dropped the following code into a program to test the interpretation of "Specifies the repeat count. The value is the number of times the keystroke is repeated as a result of the user holding down the key."

C++
case WM_KEYDOWN:
    sprintf(szText, "repeat count = %d", lParam & 0xFF);
    MessageBox(NULL, szText, "Guess What?", MB_OK|MB_ICONQUESTION);
    return 1;


While I agree with your interpretation, the message box says that the repeat count is 1.


I'd suppose that when you send WM_KEYDOWN without the wParam, the helper-function that you're calling sets up an appropriate one before calling the 'real' SendMessage, as defined by:
C++
LRESULT SendMessage(

    HWND hWnd,	// handle of destination window
    UINT Msg,	// message to send
    WPARAM wParam,	// first message parameter
    LPARAM lParam 	// second message parameter
   );

?
QuestionHi there all again! This time with an improvement! (and more clear question about C++ ADO) :) Pin
symeramon5-Oct-11 5:21
symeramon5-Oct-11 5:21 
AnswerRe: Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :) Pin
David Crow5-Oct-11 8:10
David Crow5-Oct-11 8:10 
GeneralRe: Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :) Pin
symeramon6-Oct-11 0:47
symeramon6-Oct-11 0:47 
GeneralRe: Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :) Pin
David Crow6-Oct-11 2:55
David Crow6-Oct-11 2:55 
GeneralRe: Hi there all again! This time with an improvement! (and more clear question about C++ ADO) :) Pin
symeramon7-Oct-11 5:33
symeramon7-Oct-11 5:33 
QuestionMFC usage Pin
mysmax5-Oct-11 2:01
mysmax5-Oct-11 2:01 
AnswerRe: MFC usage Pin
Albert Holguin5-Oct-11 2:53
professionalAlbert Holguin5-Oct-11 2:53 
GeneralRe: MFC usage Pin
Stefan_Lang6-Oct-11 1:32
Stefan_Lang6-Oct-11 1:32 
AnswerRe: MFC usage Pin
Software_Developer5-Oct-11 3:11
Software_Developer5-Oct-11 3:11 
GeneralRe: MFC usage Pin
Richard MacCutchan5-Oct-11 4:42
mveRichard MacCutchan5-Oct-11 4:42 
GeneralRe: MFC usage Pin
Software_Developer5-Oct-11 5:13
Software_Developer5-Oct-11 5:13 
QuestionC++ Providers Pin
rupeshkp7285-Oct-11 1:36
rupeshkp7285-Oct-11 1:36 
AnswerRe: C++ Providers Pin
_AnsHUMAN_ 5-Oct-11 1:52
_AnsHUMAN_ 5-Oct-11 1:52 
GeneralRe: C++ Providers Pin
rupeshkp7285-Oct-11 1:59
rupeshkp7285-Oct-11 1:59 
AnswerRe: C++ Providers Pin
Software_Developer5-Oct-11 3:31
Software_Developer5-Oct-11 3:31 
GeneralRe: C++ Providers Pin
rupeshkp7285-Oct-11 4:39
rupeshkp7285-Oct-11 4:39 
QuestionHow to Copy static array to dynamic array Pin
002comp4-Oct-11 23:34
002comp4-Oct-11 23:34 

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.