Click here to Skip to main content
13,768,340 members

C / C++ / MFC

 
AnswerRe: The "hide_gui" key in the regedit , i want to know how does it works? Pin
Richard MacCutchan30-Apr-13 22:31
protectorRichard MacCutchan30-Apr-13 22:31 
QuestionAccess structure variable value using string representing variable's name in C++. Pin
shanmugarajaa30-Apr-13 2:43
membershanmugarajaa30-Apr-13 2:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Sivaraman Dhamodharan30-Apr-13 3:10
memberSivaraman Dhamodharan30-Apr-13 3:10 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Chris Losinger30-Apr-13 5:07
professionalChris Losinger30-Apr-13 5:07 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Newbie0030-Apr-13 8:43
memberNewbie0030-Apr-13 8:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
jschell30-Apr-13 10:47
memberjschell30-Apr-13 10:47 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Stefan_Lang1-May-13 23:09
memberStefan_Lang1-May-13 23:09 
QuestionCatch OnKeyDown in CDialog Pin
_Flaviu30-Apr-13 0:52
member_Flaviu30-Apr-13 0: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:
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:
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 2:52
professionalChris Losinger30-Apr-13 2:52 
GeneralRe: Catch OnKeyDown in CDialog Pin
_Flaviu30-Apr-13 3:11
member_Flaviu30-Apr-13 3:11 
QuestionReadfile to read parent process console buffer Pin
ForNow29-Apr-13 16:51
memberForNow29-Apr-13 16:51 
AnswerRe: Readfile to read parent process console buffer Pin
«_Superman_»2-May-13 20:11
professional«_Superman_»2-May-13 20:11 
GeneralRe: Readfile to read parent process console buffer Pin
ForNow3-May-13 5:11
memberForNow3-May-13 5:11 
QuestionNo more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 10:36
memberVaclav_29-Apr-13 10:36 
QuestionRe: No more DSP but DSW and SLN in VC6.0 Pin
David Crow29-Apr-13 10:40
memberDavid Crow29-Apr-13 10:40 
AnswerRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 15:11
memberVaclav_29-Apr-13 15:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan30-Apr-13 0:11
protectorRichard MacCutchan30-Apr-13 0:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_30-Apr-13 4:39
memberVaclav_30-Apr-13 4:39 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan30-Apr-13 7:09
protectorRichard MacCutchan30-Apr-13 7:09 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Freak3030-Apr-13 1:37
memberFreak3030-Apr-13 1:37 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_30-Apr-13 4:31
memberVaclav_30-Apr-13 4:31 
AnswerRe: No more DSP but DSW and SLN in VC6.0 Pin
H.Brydon30-Apr-13 19:58
professionalH.Brydon30-Apr-13 19:58 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_1-May-13 10:38
memberVaclav_1-May-13 10:38 
QuestionHelp with KB Q147578 Pin
ForNow29-Apr-13 9:33
memberForNow29-Apr-13 9:33 
QuestionRe: Help with KB Q147578 Pin
David Crow29-Apr-13 10:41
memberDavid Crow29-Apr-13 10: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.


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.181116.1 | Last Updated 18 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid