Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionquestioncan we have a toolbar on dialog Pin
cancerion6-Dec-06 1:41
cancerion6-Dec-06 1:41 
AnswerRe: questioncan we have a toolbar on dialog Pin
toxcct6-Dec-06 1:45
toxcct6-Dec-06 1:45 
QuestionRemoveDriveByLetter ( save removal of the USB) Pin
madhukarreddy6-Dec-06 1:33
madhukarreddy6-Dec-06 1:33 
QuestionIntegrate the DDK in Visual C++ Pin
__TSX__6-Dec-06 0:50
__TSX__6-Dec-06 0:50 
QuestionHow I can add Text on the image? Pin
Sameer_Thakur6-Dec-06 0:39
Sameer_Thakur6-Dec-06 0:39 
AnswerRe: How I can add Text on the image? Pin
Hamid_RT6-Dec-06 1:04
Hamid_RT6-Dec-06 1:04 
AnswerRe: How I can add Text on the image? Pin
Cedric Moonen6-Dec-06 1:20
Cedric Moonen6-Dec-06 1:20 
Questionhow to detect a modal dialog box coming up and to response to the dialog box Pin
cy163@hotmail.com6-Dec-06 0:36
cy163@hotmail.com6-Dec-06 0:36 
I have been racking my brains to figure out how to detect a modal dialog box coming up and to response to the dialog box by lines of code which simulating "press ENTER key " or "clicking a button".

In my project, I import a dynamically linked library to use some functions. One function bring up some modal dialog boxes, suspending the main thread. I want to responsing to the dialog box as soon as it pops up by simulating the act of "Pressing the OK button on the dialog" with code. On the dialog box, there is only a OK button(having focus). Currently, I have to press the OK button manually whenever a dialog box comes up. I think the solution involves two aspects: (1) detect the occurrence of a dialog box; (2) simulate "Pressing the OK button on the dialog" with code.

Can anyone help please. Without a solution, I have to reponse manually to handreds of thousands of dialog boxes to keep my program running.

By the way, there is no way I contact the authors of the dynamically linked library to solve this problem.
AnswerRe: how to detect a modal dialog box coming up and to response to the dialog box Pin
prasad_som6-Dec-06 1:01
prasad_som6-Dec-06 1:01 
GeneralRe: how to detect a modal dialog box coming up and to response to the dialog box Pin
cy163@hotmail.com7-Dec-06 15:32
cy163@hotmail.com7-Dec-06 15:32 
AnswerRe: how to detect a modal dialog box coming up and to response to the dialog box Pin
prasad_som19-Dec-06 18:36
prasad_som19-Dec-06 18:36 
QuestionClearing of characters in editbox control Pin
zareee6-Dec-06 0:03
zareee6-Dec-06 0:03 
AnswerRe: Clearing of characters in editbox control Pin
vision20046-Dec-06 0:26
vision20046-Dec-06 0:26 
AnswerOT : PRE tags Pin
toxcct6-Dec-06 0:33
toxcct6-Dec-06 0:33 
AnswerRe: Clearing of characters in editbox control Pin
prasad_som6-Dec-06 0:52
prasad_som6-Dec-06 0:52 
QuestionDEBUg Prob Pin
PraveenaRAJ5-Dec-06 22:44
PraveenaRAJ5-Dec-06 22:44 
AnswerRe: DEBUg Prob Pin
Rajesh R Subramanian5-Dec-06 22:51
professionalRajesh R Subramanian5-Dec-06 22:51 
GeneralRe: DEBUg Prob Pin
PraveenaRAJ5-Dec-06 23:11
PraveenaRAJ5-Dec-06 23:11 
QuestionRe: DEBUg Prob Pin
Rajesh R Subramanian5-Dec-06 23:14
professionalRajesh R Subramanian5-Dec-06 23:14 
AnswerRe: DEBUg Prob Pin
PraveenaRAJ5-Dec-06 23:16
PraveenaRAJ5-Dec-06 23:16 
GeneralRe: DEBUg Prob Pin
Rajesh R Subramanian5-Dec-06 23:35
professionalRajesh R Subramanian5-Dec-06 23:35 
GeneralRe: DEBUg Prob Pin
PraveenaRAJ5-Dec-06 23:52
PraveenaRAJ5-Dec-06 23:52 
QuestionRe: DEBUg Prob Pin
Rajesh R Subramanian6-Dec-06 0:01
professionalRajesh R Subramanian6-Dec-06 0:01 
AnswerRe: DEBUg Prob Pin
PraveenaRAJ6-Dec-06 0:13
PraveenaRAJ6-Dec-06 0:13 
GeneralRe: DEBUg Prob Pin
Rajesh R Subramanian6-Dec-06 0:19
professionalRajesh R Subramanian6-Dec-06 0:19 

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.