Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Windows Message Confusion! Gurus come and help! Pin
ThatsAlok7-Dec-05 19:29
ThatsAlok7-Dec-05 19:29 
QuestionSir, Can any One tell me what Message is Fired When We Press Atl+Ctrl+Del Pin
CodeVarma7-Dec-05 4:21
CodeVarma7-Dec-05 4:21 
AnswerRe: Sir, Can any One tell me what Message is Fired When We Press Atl+Ctrl+Del Pin
David Crow7-Dec-05 5:32
David Crow7-Dec-05 5:32 
GeneralRe: Sir, Can any One tell me what Message is Fired When We Press Atl+Ctrl+Del Pin
PJ Arends7-Dec-05 7:34
professionalPJ Arends7-Dec-05 7:34 
GeneralRe: Sir, Can any One tell me what Message is Fired When We Press Atl+Ctrl+Del Pin
David Crow7-Dec-05 7:45
David Crow7-Dec-05 7:45 
QuestionPrinting from an alternate paper tray Pin
rcraigadams7-Dec-05 4:08
rcraigadams7-Dec-05 4:08 
AnswerRe: Printing from an alternate paper tray Pin
ThatsAlok7-Dec-05 23:10
ThatsAlok7-Dec-05 23:10 
QuestionProblem With Message Handling in Modeless Dialog Pin
Doug Knudson7-Dec-05 3:35
Doug Knudson7-Dec-05 3:35 
Hi All,

I'm really baffled and having struggled for several days, I need to bare my soul and ask for help Smile | :)

With C++ VS 6, I have created a COM component, added an ATL (Full Control), added methods and events to the appropriate interfaces and then created a modeless dialog (CDialog) in the component. The control has no CWnd so when I create the modeless dialog, I use Create (IDD,NULL) where the NULL indicates, I think, that the parent is the main app window, of which there is none, at least not in the COM component itself.

Things all work well so far and I have added a bunch of standard dialog controls, buttons, statics, edit controls, etc all working fine EXCEPT I am unable to use the TAB key to move between edit controls. In general, it seems that mouse messages are sent to the dialog where I can handle them but most keyboard messages (WM_CHAR, WM_KEYDOWN, WM_KEYUP, etc. are not. In fact, I even added a PreTranslateMessage handler to the dialog, but it never even gets called?

In desperation, I added a PreTranslateMessage handler to the "MFC host app" that instantiates and uses the COM component and indeed I can capture the messages of interest from the CDialog in the COM component, WM_CHAR, WM_KEYDOWN, WM_KEYUP, etc but of course it doesn't do me much good to have the messages at this high level. My guess is that the messages get to the MFC host app because, to a COM component, the host app "is" the main application window??

Either way, I really need to have the dialog in the COM component allow the user to tab between edit controls. Any help would be greatly appreciated.

Thanks,
Doug

Doug Knudson
QuestionSir , will any help me .i want menu with CheckBox . Pin
CodeVarma7-Dec-05 2:50
CodeVarma7-Dec-05 2:50 
GeneralRe: Sir , will any help me .i want menu with CheckBox . Pin
khan++7-Dec-05 3:59
khan++7-Dec-05 3:59 
QuestionHelp. Create a bmp file in C++ Pin
Ming Luo7-Dec-05 2:39
Ming Luo7-Dec-05 2:39 
AnswerRe: Help. Create a bmp file in C++ Pin
jinzhecheng7-Dec-05 5:19
jinzhecheng7-Dec-05 5:19 
AnswerRe: Help. Create a bmp file in C++ Pin
Chris Losinger7-Dec-05 6:24
professionalChris Losinger7-Dec-05 6:24 
Questionhelp me to read serial number Pin
yasa2947-Dec-05 2:25
yasa2947-Dec-05 2:25 
AnswerRe: help me to read serial number Pin
kakan7-Dec-05 2:38
professionalkakan7-Dec-05 2:38 
GeneralRe: help me to read serial number Pin
ThatsAlok7-Dec-05 18:21
ThatsAlok7-Dec-05 18:21 
GeneralRe: help me to read serial number Pin
kakan7-Dec-05 18:44
professionalkakan7-Dec-05 18:44 
AnswerRe: help me to read serial number Pin
ThatsAlok7-Dec-05 18:21
ThatsAlok7-Dec-05 18:21 
QuestionHow to check the status of a Windows Service programatically Pin
amigo_rk7-Dec-05 2:11
amigo_rk7-Dec-05 2:11 
AnswerRe: How to check the status of a Windows Service programatically Pin
David Crow7-Dec-05 2:45
David Crow7-Dec-05 2:45 
AnswerRe: How to check the status of a Windows Service programatically Pin
ThatsAlok7-Dec-05 18:09
ThatsAlok7-Dec-05 18:09 
QuestionPrinting Extended Characters Pin
rcraigadams7-Dec-05 2:00
rcraigadams7-Dec-05 2:00 
QuestionHow to use Home & End Buttons on TabControl Pin
zxc897-Dec-05 1:40
zxc897-Dec-05 1:40 
AnswerRe: How to use Home & End Buttons on TabControl Pin
khan++7-Dec-05 4:06
khan++7-Dec-05 4:06 
QuestionIncluding the lib file Pin
vikas amin7-Dec-05 1:31
vikas amin7-Dec-05 1:31 

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.