Click here to Skip to main content
16,005,209 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to write CString value to txt file??? Pin
toxcct2-May-07 4:11
toxcct2-May-07 4:11 
GeneralRe: How to write CString value to txt file??? Pin
cp98762-May-07 14:29
cp98762-May-07 14:29 
QuestionHow to send WM_KEYDOWN message? Pin
eli150219791-May-07 23:21
eli150219791-May-07 23:21 
AnswerRe: How to send WM_KEYDOWN message? Pin
toxcct1-May-07 23:27
toxcct1-May-07 23:27 
GeneralRe: How to send WM_KEYDOWN message? Pin
JudyL_MD2-May-07 3:10
JudyL_MD2-May-07 3:10 
GeneralRe: How to send WM_KEYDOWN message? Pin
toxcct2-May-07 3:13
toxcct2-May-07 3:13 
QuestionRe: How to send WM_KEYDOWN message? Pin
Rajesh R Subramanian1-May-07 23:31
professionalRajesh R Subramanian1-May-07 23:31 
AnswerRe: How to send WM_KEYDOWN message? Pin
eli150219792-May-07 0:45
eli150219792-May-07 0:45 
Hi brahmma,

I know the way of overriding PreTranslateMessage.
The problem is that I've put a breakpoint inside that function but I never
stop there.
My code is :
virtual BOOL PreTranslateMessage(MSG* pMsg);


and the implementation is :
BOOL Frm_WKFailureMatrix::PreTranslateMessage(MSG* pMsg)
{
	if (pMsg->message == WM_KEYDOWN)
	{
		int x = 0;
	}
	return TRUE;
}


However,if i move the focus into a button(by mouse click),the button receives the WM_KEYDOWN message.

1. Is it because of that automatically when I select a window , the focus
is moving into the first control inside that window?
2. As far as I understand , the parrent windw shall receive the WM_KEYDOWN
message and dispatch it to all of its children , isn't it???

Thanks again,
Eli
GeneralRe: How to send WM_KEYDOWN message? Pin
Rajesh R Subramanian2-May-07 4:33
professionalRajesh R Subramanian2-May-07 4:33 
QuestionOCX to DLL Pin
Nilesh Hapse1-May-07 23:19
Nilesh Hapse1-May-07 23:19 
AnswerRe: OCX to DLL Pin
toxcct1-May-07 23:25
toxcct1-May-07 23:25 
GeneralRe: OCX to DLL Pin
Nilesh Hapse1-May-07 23:28
Nilesh Hapse1-May-07 23:28 
GeneralRe: OCX to DLL Pin
toxcct1-May-07 23:30
toxcct1-May-07 23:30 
GeneralRe: OCX to DLL Pin
Nilesh Hapse1-May-07 23:31
Nilesh Hapse1-May-07 23:31 
AnswerRe: OCX to DLL Pin
prasad_som2-May-07 1:28
prasad_som2-May-07 1:28 
GeneralRe: OCX to DLL Pin
Nilesh Hapse2-May-07 21:04
Nilesh Hapse2-May-07 21:04 
QuestionHow to wait for a callback function? Pin
rumburack1-May-07 22:33
rumburack1-May-07 22:33 
AnswerRe: How to wait for a callback function? [modified] Pin
Moak1-May-07 23:43
Moak1-May-07 23:43 
Questiondrawing image histogram and change it by mouse Pin
ndadashi1-May-07 22:33
ndadashi1-May-07 22:33 
Questionhow to initialize const char array? Pin
Joe Smith IX1-May-07 22:21
Joe Smith IX1-May-07 22:21 
AnswerRe: how to initialize const char array? Pin
Christian Graus1-May-07 22:30
protectorChristian Graus1-May-07 22:30 
GeneralRe: how to initialize const char array? Pin
Joe Smith IX1-May-07 22:37
Joe Smith IX1-May-07 22:37 
GeneralRe: how to initialize const char array? Pin
Christian Graus1-May-07 23:21
protectorChristian Graus1-May-07 23:21 
GeneralRe: how to initialize const char array? Pin
Joe Smith IX1-May-07 23:45
Joe Smith IX1-May-07 23:45 
AnswerRe: how to initialize const char array? [modified] Pin
toxcct1-May-07 22:32
toxcct1-May-07 22:32 

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.