Click here to Skip to main content
15,860,972 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: The "hide_gui" key in the regedit , i want to know how does it works? Pin
Richard MacCutchan30-Apr-13 21:31
mveRichard MacCutchan30-Apr-13 21:31 
QuestionAccess structure variable value using string representing variable's name in C++. Pin
shanmugarajaa30-Apr-13 1:43
shanmugarajaa30-Apr-13 1:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Sivaraman Dhamodharan30-Apr-13 2:10
Sivaraman Dhamodharan30-Apr-13 2:10 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Chris Losinger30-Apr-13 4:07
professionalChris Losinger30-Apr-13 4:07 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Newbie0030-Apr-13 7:43
Newbie0030-Apr-13 7:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
jschell30-Apr-13 9:47
jschell30-Apr-13 9:47 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Stefan_Lang1-May-13 22:09
Stefan_Lang1-May-13 22:09 
QuestionCatch OnKeyDown in CDialog Pin
_Flaviu29-Apr-13 23:52
_Flaviu29-Apr-13 23:52 
I have an MDI application ... somewhere, I had open an CDialog derived dialog, where I have only two buttons ... but in this dialog I can not catch any OnKeyDown event ... why ?
I had tried in follow way:
C++
void CMyDialog::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default
MessageBox("A");
	CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}
void CMyDialog::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default
MessageBox("B");
	CDialog::OnChar(nChar, nRepCnt, nFlags);
}

on any key pressed, I see no MessageBox ... why ?

I even had overridden ON_WM_GETDLGCODE:
C++
UINT CMyDialog::OnGetDlgCode()
{
	return DLGC_WANTALLKEYS;
}

nothing worked ... what should I do to know when the user press a key, when CMyDialog has the focus ?
Thank you.

modified 30-Apr-13 5:59am.

AnswerRe: Catch OnKeyDown in CDialog Pin
Chris Losinger30-Apr-13 1:52
professionalChris Losinger30-Apr-13 1:52 
GeneralRe: Catch OnKeyDown in CDialog Pin
_Flaviu30-Apr-13 2:11
_Flaviu30-Apr-13 2:11 
QuestionReadfile to read parent process console buffer Pin
ForNow29-Apr-13 15:51
ForNow29-Apr-13 15:51 
AnswerRe: Readfile to read parent process console buffer Pin
«_Superman_»2-May-13 19:11
professional«_Superman_»2-May-13 19:11 
GeneralRe: Readfile to read parent process console buffer Pin
ForNow3-May-13 4:11
ForNow3-May-13 4:11 
QuestionNo more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 9:36
Vaclav_29-Apr-13 9:36 
QuestionRe: No more DSP but DSW and SLN in VC6.0 Pin
David Crow29-Apr-13 9:40
David Crow29-Apr-13 9:40 
AnswerRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 14:11
Vaclav_29-Apr-13 14:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan29-Apr-13 23:11
mveRichard MacCutchan29-Apr-13 23:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_30-Apr-13 3:39
Vaclav_30-Apr-13 3:39 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan30-Apr-13 6:09
mveRichard MacCutchan30-Apr-13 6:09 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Freak3030-Apr-13 0:37
Freak3030-Apr-13 0:37 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_30-Apr-13 3:31
Vaclav_30-Apr-13 3:31 
AnswerRe: No more DSP but DSW and SLN in VC6.0 Pin
H.Brydon30-Apr-13 18:58
professionalH.Brydon30-Apr-13 18:58 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_1-May-13 9:38
Vaclav_1-May-13 9:38 
QuestionHelp with KB Q147578 Pin
ForNow29-Apr-13 8:33
ForNow29-Apr-13 8:33 
QuestionRe: Help with KB Q147578 Pin
David Crow29-Apr-13 9:41
David Crow29-Apr-13 9:41 

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.