Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to click a bitmap into a bitmap? MFC, Visual C++6 Pin
Christian Graus3-Mar-05 11:13
protectorChristian Graus3-Mar-05 11:13 
GeneralRe: How to click a bitmap into a bitmap? MFC, Visual C++6 Pin
VogelH4-Mar-05 0:05
professionalVogelH4-Mar-05 0:05 
QuestionExit Program? Pin
Larsson2-Mar-05 9:08
Larsson2-Mar-05 9:08 
AnswerRe: Exit Program? Pin
David Crow2-Mar-05 9:17
David Crow2-Mar-05 9:17 
AnswerRe: Exit Program? Pin
Blake Miller2-Mar-05 10:37
Blake Miller2-Mar-05 10:37 
GeneralRe: Exit Program? Pin
Ed K2-Mar-05 11:09
Ed K2-Mar-05 11:09 
GeneralRe: Exit Program? Pin
Antony M Kancidrowski2-Mar-05 11:28
Antony M Kancidrowski2-Mar-05 11:28 
GeneralRe: Exit Program? Pin
Blake Miller2-Mar-05 11:31
Blake Miller2-Mar-05 11:31 
I am not sure. I think you have to change the window's style to get the 'X' to go away.

I usually don't disable it so much as I just catch the WM_CLOSE and do not let the WM_CLOSE go through. It is polite to display a message box explaining to the user why the window can not be closed 'at this time'. Like 'You can not close this window because it is busy scanning e-mail right now' or something like that.

Of course, you might be closing for a more legitimate reason, like the user is logging off or Windows is shutting down, so you need to catch those events as well if you completely disable closing for a window.


Generalconnect() timeout Pin
Alexander M.,2-Mar-05 7:24
Alexander M.,2-Mar-05 7:24 
GeneralRe: connect() timeout Pin
ThatsAlok2-Mar-05 18:44
ThatsAlok2-Mar-05 18:44 
GeneralCapturing Inactive Desktop Pin
harshi2-Mar-05 6:50
harshi2-Mar-05 6:50 
GeneralRe: Capturing Inactive Desktop Pin
Blake Miller2-Mar-05 7:22
Blake Miller2-Mar-05 7:22 
GeneralWindow within a window Pin
__makaveli__2-Mar-05 6:24
__makaveli__2-Mar-05 6:24 
GeneralRe: Window within a window Pin
Maximilien2-Mar-05 6:34
Maximilien2-Mar-05 6:34 
GeneralRe: Window within a window Pin
__makaveli__2-Mar-05 7:49
__makaveli__2-Mar-05 7:49 
GeneralRe: Window within a window Pin
David Crow2-Mar-05 9:03
David Crow2-Mar-05 9:03 
GeneralRe: Window within a window Pin
__makaveli__2-Mar-05 9:10
__makaveli__2-Mar-05 9:10 
GeneralRe: Window within a window Pin
David Crow2-Mar-05 9:15
David Crow2-Mar-05 9:15 
GeneralRe: Window within a window Pin
__makaveli__2-Mar-05 9:19
__makaveli__2-Mar-05 9:19 
GeneralRe: Window within a window Pin
David Crow2-Mar-05 9:28
David Crow2-Mar-05 9:28 
GeneralRe: Window within a window Pin
__makaveli__2-Mar-05 9:30
__makaveli__2-Mar-05 9:30 
GeneralRe: Window within a window Pin
David Crow2-Mar-05 9:34
David Crow2-Mar-05 9:34 
GeneralRe: Window within a window Pin
__makaveli__2-Mar-05 9:40
__makaveli__2-Mar-05 9:40 
GeneralRe: Window within a window Pin
__makaveli__3-Mar-05 10:39
__makaveli__3-Mar-05 10:39 
GeneralDesign suggestion Pin
doctorpi2-Mar-05 6:12
doctorpi2-Mar-05 6:12 

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.