Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A CString question Pin
Blake Miller7-Apr-06 4:01
Blake Miller7-Apr-06 4:01 
QuestionIntroduce Yourself to Vc++ Part II,III,IV Pin
manhhung_luu7-Apr-06 0:58
manhhung_luu7-Apr-06 0:58 
AnswerRe: Introduce Yourself to Vc++ Part II,III,IV Pin
Ștefan-Mihai MOGA7-Apr-06 1:18
professionalȘtefan-Mihai MOGA7-Apr-06 1:18 
QuestionRe: Introduce Yourself to Vc++ Part II,III,IV Pin
David Crow7-Apr-06 2:56
David Crow7-Apr-06 2:56 
QuestionHow to customize MessageBox? Pin
Drca7-Apr-06 0:46
Drca7-Apr-06 0:46 
AnswerRe: How to customize MessageBox? Pin
Ștefan-Mihai MOGA7-Apr-06 0:56
professionalȘtefan-Mihai MOGA7-Apr-06 0:56 
GeneralRe: How to customize MessageBox? Pin
Drca7-Apr-06 1:33
Drca7-Apr-06 1:33 
AnswerRe: How to customize MessageBox? Pin
James R. Twine7-Apr-06 1:55
James R. Twine7-Apr-06 1:55 
   OK - first, the documentation is incorrect for the message box functions.  There is a little known fact about the internals of standard message boxes that use MB_OK - that is actually a IDCANCEL button with a label of "OK".  That is why you can dismiss that kind of message box using ESC or ENTER.

   Second, as of Windows XP, there is no difference between using MessageBoxEx(...) or MessageBox(...), so if you are using the Ex version, you might want to make sure you know what you are doing with it...

   Lastly, I do not think that there is a way to do that without doing something like implementing your own message box-like function from scratch, or doing something like creating a Yes/No message box and then hooking its creation, relabeling one button to "OK", centering it, and hiding the second button.  You might also have to handle mnemonic actions for the hidden button, though...

   Peace!

-=- James
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!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
Questionsizeof Pin
vikramlinux7-Apr-06 0:35
vikramlinux7-Apr-06 0:35 
AnswerRe: sizeof Pin
Ștefan-Mihai MOGA7-Apr-06 0:39
professionalȘtefan-Mihai MOGA7-Apr-06 0:39 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 0:43
vikramlinux7-Apr-06 0:43 
GeneralRe: sizeof Pin
Cedric Moonen7-Apr-06 0:56
Cedric Moonen7-Apr-06 0:56 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 2:45
vikramlinux7-Apr-06 2:45 
GeneralRe: sizeof Pin
toxcct7-Apr-06 2:54
toxcct7-Apr-06 2:54 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 3:19
vikramlinux7-Apr-06 3:19 
GeneralRe: sizeof Pin
toxcct7-Apr-06 3:30
toxcct7-Apr-06 3:30 
AnswerRe: sizeof Pin
James R. Twine7-Apr-06 0:50
James R. Twine7-Apr-06 0:50 
AnswerRe: sizeof Pin
toxcct7-Apr-06 2:20
toxcct7-Apr-06 2:20 
GeneralRe: sizeof Pin
vikramlinux7-Apr-06 3:21
vikramlinux7-Apr-06 3:21 
GeneralRe: sizeof Pin
toxcct7-Apr-06 3:34
toxcct7-Apr-06 3:34 
AnswerRe: sizeof Pin
cmk7-Apr-06 10:24
cmk7-Apr-06 10:24 
QuestionCryptographic help Pin
Waldermort7-Apr-06 0:15
Waldermort7-Apr-06 0:15 
AnswerRe: Cryptographic help Pin
Ștefan-Mihai MOGA7-Apr-06 0:35
professionalȘtefan-Mihai MOGA7-Apr-06 0:35 
AnswerRe: Cryptographic help Pin
James R. Twine7-Apr-06 1:41
James R. Twine7-Apr-06 1:41 
GeneralRe: Cryptographic help Pin
Waldermort7-Apr-06 1:57
Waldermort7-Apr-06 1:57 

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.