Click here to Skip to main content
13,902,979 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 21:31
protectorRichard MacCutchan30-Apr-13 21:31 
QuestionAccess structure variable value using string representing variable's name in C++. Pin
shanmugarajaa30-Apr-13 1:43
membershanmugarajaa30-Apr-13 1:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Sivaraman Dhamodharan30-Apr-13 2:10
memberSivaraman 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
memberNewbie0030-Apr-13 7:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
jschell30-Apr-13 9:47
memberjschell30-Apr-13 9:47 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Stefan_Lang1-May-13 22:09
memberStefan_Lang1-May-13 22:09 
QuestionCatch OnKeyDown in CDialog Pin
_Flaviu29-Apr-13 23:52
member_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:
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 1:52
professionalChris Losinger30-Apr-13 1:52 
GeneralRe: Catch OnKeyDown in CDialog Pin
_Flaviu30-Apr-13 2:11
member_Flaviu30-Apr-13 2:11 
QuestionReadfile to read parent process console buffer Pin
ForNow29-Apr-13 15:51
memberForNow29-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
memberForNow3-May-13 4:11 
QuestionNo more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 9:36
memberVaclav_29-Apr-13 9:36 
QuestionRe: No more DSP but DSW and SLN in VC6.0 Pin
David Crow29-Apr-13 9:40
memberDavid Crow29-Apr-13 9:40 
AnswerRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 14:11
memberVaclav_29-Apr-13 14:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan29-Apr-13 23:11
protectorRichard MacCutchan29-Apr-13 23:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_30-Apr-13 3:39
memberVaclav_30-Apr-13 3:39 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan30-Apr-13 6:09
protectorRichard MacCutchan30-Apr-13 6:09 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Freak3030-Apr-13 0:37
memberFreak3030-Apr-13 0:37 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_30-Apr-13 3:31
memberVaclav_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
memberVaclav_1-May-13 9:38 
QuestionHelp with KB Q147578 Pin
ForNow29-Apr-13 8:33
memberForNow29-Apr-13 8:33 
QuestionRe: Help with KB Q147578 Pin
David Crow29-Apr-13 9:41
memberDavid 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.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190306.1 | Last Updated 25 Mar 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid