Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fonts and Colors Pin
Anna-Jayne Metcalfe29-Jul-03 6:19
Anna-Jayne Metcalfe29-Jul-03 6:19 
GeneralRe: Fonts and Colors Pin
armentage29-Jul-03 6:43
armentage29-Jul-03 6:43 
GeneralRe: Fonts and Colors Pin
_skidrow_vn_29-Jul-03 12:26
_skidrow_vn_29-Jul-03 12:26 
GeneralRe: Fonts and Colors Pin
The_Server29-Jul-03 15:39
The_Server29-Jul-03 15:39 
GeneralRe: Fonts and Colors Pin
_skidrow_vn_30-Jul-03 9:17
_skidrow_vn_30-Jul-03 9:17 
GeneralView on Docking Window Pin
FAADI28-Jul-03 23:54
FAADI28-Jul-03 23:54 
GeneralAgain Window Closing Problem Pin
FAADI28-Jul-03 23:45
FAADI28-Jul-03 23:45 
GeneralRe: Again Window Closing Problem Pin
Bob Stanneveld29-Jul-03 0:54
Bob Stanneveld29-Jul-03 0:54 
Hello,

you should NOT destroy the window maually! your applications takes care of that. Thats the reason why it works when you make comment of your code. Let's take a look on how a window is destroyed.

When a WM_CLOSE message arrives, the following functios are called in this order:

OnCloseQuery()
OnClose()
// then the WM_SHOWWINDOW with wParam or lParam set to FALSE is posted
OnHide()
// then the WM_DESTROY is posted
OnDestroy()

In all these functions the window is still there on the heap! You can see the OnDestroy() function as an addition to the destructor of the window.

So what you should do is the following: Get the handle of your splitter window and post the WM_QUIT message, WM_SHOWWINDOW and the WM_DESTROY. This should do the trick.

Please let me know...





A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.



GeneralRe: Again Window Closing Problem Pin
Mike Dimmick29-Jul-03 2:33
Mike Dimmick29-Jul-03 2:33 
GeneralRe: Again Window Closing Problem Pin
Bob Stanneveld29-Jul-03 2:38
Bob Stanneveld29-Jul-03 2:38 
GeneralRe: Again Window Closing Problem Pin
Mike Dimmick29-Jul-03 3:07
Mike Dimmick29-Jul-03 3:07 
GeneralRe: Again Window Closing Problem Pin
Bob Stanneveld29-Jul-03 3:11
Bob Stanneveld29-Jul-03 3:11 
GeneralAbout semaphore knowledge Pin
FlyingDancer28-Jul-03 23:38
FlyingDancer28-Jul-03 23:38 
GeneralRe: About semaphore knowledge Pin
geo_m29-Jul-03 1:15
geo_m29-Jul-03 1:15 
GeneralRe: About semaphore knowledge Pin
FlyingDancer29-Jul-03 3:31
FlyingDancer29-Jul-03 3:31 
GeneralRotate DIB Bitmap Pin
bitm28-Jul-03 23:24
bitm28-Jul-03 23:24 
GeneralRe: Rotate DIB Bitmap Pin
Alexander M.,29-Jul-03 9:24
Alexander M.,29-Jul-03 9:24 
GeneralHakars: access another comoputer via Internet Pin
Fad B28-Jul-03 23:06
Fad B28-Jul-03 23:06 
GeneralRe: Hakars: access another comoputer via Internet Pin
Alexander M.,29-Jul-03 9:25
Alexander M.,29-Jul-03 9:25 
GeneralCTreeView Pin
frackasse28-Jul-03 22:57
frackasse28-Jul-03 22:57 
GeneralRe: CTreeView Pin
Arjan Schouten28-Jul-03 23:25
Arjan Schouten28-Jul-03 23:25 
GeneralI need help to display a dialog from Resource-only DLL Pin
Cheickna28-Jul-03 22:46
Cheickna28-Jul-03 22:46 
GeneralRe: I need help to display a dialog from Resource-only DLL Pin
wb28-Jul-03 23:26
wb28-Jul-03 23:26 
GeneralRe: I need help to display a dialog from Resource-only DLL Pin
Ryan Binns29-Jul-03 0:18
Ryan Binns29-Jul-03 0:18 
Questionhow to read a file correctly ;) Pin
User-37793628-Jul-03 22:37
User-37793628-Jul-03 22:37 

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.