Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem by using Property Page as a Dialog Pin
Rage27-May-03 2:33
professionalRage27-May-03 2:33 
GeneralRe: Problem by using Property Page as a Dialog Pin
Renjith Ramachandran27-May-03 4:09
Renjith Ramachandran27-May-03 4:09 
GeneralRe: Problem by using Property Page as a Dialog Pin
praveenpnayak28-May-03 0:11
praveenpnayak28-May-03 0:11 
GeneralDialogBox problem Pin
Jump_Around27-May-03 0:02
Jump_Around27-May-03 0:02 
GeneralRe: DialogBox problem Pin
Daniel Strigl27-May-03 0:18
Daniel Strigl27-May-03 0:18 
GeneralRe: DialogBox problem Pin
Neville Franks27-May-03 0:32
Neville Franks27-May-03 0:32 
GeneralDisable close button in AfxMessageBox Pin
rohit.dhamija26-May-03 23:27
rohit.dhamija26-May-03 23:27 
GeneralRe: Disable close button in AfxMessageBox Pin
dabs26-May-03 23:48
dabs26-May-03 23:48 
One option would be to simply remove it. You can control what buttons are shown on a message box through the MB_xxx constants. If my memory serves me right then AfxMessageBox allows you to do that, otherwise you will have to use the ::MessageBox API directly.

If you already knew all this and you simply want to disable this button without removing it then there's no easy way to do it. Russ Freeman had an excellent article here somewhere where he described a method to hook into the creation of a message box and modify it - I can't seem to find it again. Then there is another article with a custom message box: http://www.codeproject.com/dialog/xmessagebox.asp[^] which you might want to take a look at.

Hope this helps.



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
GeneralRe: Disable close button in AfxMessageBox Pin
rohit.dhamija27-May-03 0:13
rohit.dhamija27-May-03 0:13 
GeneralRe: Disable close button in AfxMessageBox Pin
Anonymous27-May-03 0:29
Anonymous27-May-03 0:29 
GeneralRe: Disable close button in AfxMessageBox Pin
Maximilien27-May-03 0:45
Maximilien27-May-03 0:45 
GeneralRe: Disable close button in AfxMessageBox Pin
rohit.dhamija27-May-03 1:03
rohit.dhamija27-May-03 1:03 
GeneralRe: Disable close button in AfxMessageBox Pin
Rage27-May-03 1:16
professionalRage27-May-03 1:16 
GeneralRe: Disable close button in AfxMessageBox Pin
Rage27-May-03 1:12
professionalRage27-May-03 1:12 
GeneralRe: Disable close button in AfxMessageBox Pin
Anonymous27-May-03 2:00
Anonymous27-May-03 2:00 
GeneralRe: Disable close button in AfxMessageBox Pin
Rage27-May-03 2:15
professionalRage27-May-03 2:15 
Questionhow to resolve this compilation error? Pin
safee ullah26-May-03 23:16
safee ullah26-May-03 23:16 
AnswerRe: how to resolve this compilation error? Pin
Rage26-May-03 23:26
professionalRage26-May-03 23:26 
QuestionHow do you programmatically maintain internet connection? Pin
Abin26-May-03 23:10
Abin26-May-03 23:10 
AnswerRe: How do you programmatically maintain internet connection? Pin
Anonymous26-May-03 23:27
Anonymous26-May-03 23:27 
QuestionHOW TO CLOSE AN APP WITH ANOTHER Pin
Cheickna26-May-03 23:08
Cheickna26-May-03 23:08 
AnswerRe: HOW TO CLOSE AN APP WITH ANOTHER Pin
Rage26-May-03 23:28
professionalRage26-May-03 23:28 
GeneralRe: HOW TO CLOSE AN APP WITH ANOTHER Pin
Cheickna26-May-03 23:38
Cheickna26-May-03 23:38 
GeneralRe: HOW TO CLOSE AN APP WITH ANOTHER Pin
Rage27-May-03 0:57
professionalRage27-May-03 0:57 
AnswerRe: HOW TO CLOSE AN APP WITH ANOTHER Pin
Anonymous27-May-03 0:38
Anonymous27-May-03 0:38 

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.