Click here to Skip to main content
16,006,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Set the focus to already opened View Pin
James R. Twine1-May-07 2:09
James R. Twine1-May-07 2:09 
QuestionRe: Set the focus to already opened View Pin
David Crow1-May-07 2:40
David Crow1-May-07 2:40 
QuestionMessagebox Pin
deeps_cute1-May-07 1:39
deeps_cute1-May-07 1:39 
AnswerRe: Messagebox Pin
Eytukan1-May-07 2:01
Eytukan1-May-07 2:01 
AnswerRe: Messagebox Pin
James R. Twine1-May-07 2:12
James R. Twine1-May-07 2:12 
GeneralRe: Messagebox Pin
deeps_cute1-May-07 2:18
deeps_cute1-May-07 2:18 
GeneralRe: Messagebox Pin
Rajesh R Subramanian1-May-07 9:44
professionalRajesh R Subramanian1-May-07 9:44 
GeneralRe: Messagebox Pin
James R. Twine1-May-07 14:07
James R. Twine1-May-07 14:07 
   I am talking about a message box with a single [OK] button (the MB_OK style bit).  If the dialog is showing anything other than the single [OK] button, then the buttons are as you would expect.

   The MB_OK style of message box shows a single [OK] button, but it is actually an IDCANCEL button behind the scenes that just has the text of "OK" on it (or its equivalent).  Since it is an IDCANCEL button, the [X] remains enabled and can be used to dismiss the dialog, just like pressing <ESC>.  (Generally, if you have a dialog that has a button on it with IDCANCEL, pressing the [X] or <ESC> usually activates it.)

   When you use other styles that exclude the CANCEL style, like MB_YESNO, there is no IDCANCEL button present, so the [X] is disabled and/or has no effect, just like with pressing <ESC>.

   (The things you learn having to install windows hooks to intercept and scrape dialog boxes and then determine which button to simulate activation of in order to dismiss it... Gotta love having to shoehorn GUI-laden code into a server!)

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: Messagebox Pin
David Crow2-May-07 2:07
David Crow2-May-07 2:07 
GeneralRe: Messagebox Pin
Rajesh R Subramanian2-Jun-07 10:27
professionalRajesh R Subramanian2-Jun-07 10:27 
GeneralRe: Messagebox Pin
Rajesh R Subramanian2-Jun-07 1:07
professionalRajesh R Subramanian2-Jun-07 1:07 
AnswerRe: Messagebox Pin
Rajesh R Subramanian1-May-07 9:41
professionalRajesh R Subramanian1-May-07 9:41 
Questiondbf read problem Pin
david bagaturia1-May-07 1:13
david bagaturia1-May-07 1:13 
AnswerRe: dbf read problem Pin
James R. Twine1-May-07 2:19
James R. Twine1-May-07 2:19 
Questionhow to execute an exe file in memory Pin
near2world1-May-07 0:44
near2world1-May-07 0:44 
AnswerRe: how to execute an exe file in memory Pin
David Crow1-May-07 2:42
David Crow1-May-07 2:42 
AnswerRe: how to execute an exe file in memory Pin
Joan M1-May-07 5:00
professionalJoan M1-May-07 5:00 
GeneralRe: how to execute an exe file in memory Pin
near2world1-May-07 5:29
near2world1-May-07 5:29 
GeneralRe: how to execute an exe file in memory Pin
David Crow1-May-07 5:41
David Crow1-May-07 5:41 
GeneralRe: how to execute an exe file in memory Pin
near2world1-May-07 10:28
near2world1-May-07 10:28 
QuestionRe: how to execute an exe file in memory Pin
David Crow1-May-07 10:35
David Crow1-May-07 10:35 
AnswerRe: how to execute an exe file in memory Pin
near2world2-May-07 4:48
near2world2-May-07 4:48 
GeneralRe: how to execute an exe file in memory Pin
Joan M1-May-07 5:47
professionalJoan M1-May-07 5:47 
QuestionMy thead application gets hang Pin
amitmistry_petlad 30-Apr-07 23:49
amitmistry_petlad 30-Apr-07 23:49 
QuestionRe: My thead application gets hang Pin
sthotakura1-May-07 0:16
sthotakura1-May-07 0:16 

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.