Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

destroying MDI childrens

PAGPAG Posts: 168Member
[b][red]This message was edited by PAG at 2003-4-26 14:31:50[/red][/b][hr]
I have this MDI application, which creates a (random) number of mdi childrens during it's existence. So what im wondering about is when I close the main window(which all child windows are in) will they get destroyed automatically or do I have to destroy them myself? Why im wondering is, I tried putting a message box in the WM_DESTROY case in the childs message handling procedure. And when I run the app and create a couple of child windows and exit the application with the child windows still visible, i get no message box to show...

edit. o yea, this is under the normal Win32 API not MFC or any of that stuff...


Comments

  • pingpongpingpong Posts: 937Member
    You should get WM_DESTROY in the children windows. Can you show us some code?

    : [b][red]This message was edited by PAG at 2003-4-26 14:31:50[/red][/b][hr]
    : I have this MDI application, which creates a (random) number of mdi childrens during it's existence. So what im wondering about is when I close the main window(which all child windows are in) will they get destroyed automatically or do I have to destroy them myself? Why im wondering is, I tried putting a message box in the WM_DESTROY case in the childs message handling procedure. And when I run the app and create a couple of child windows and exit the application with the child windows still visible, i get no message box to show...
    :
    : edit. o yea, this is under the normal Win32 API not MFC or any of that stuff...
    :
    :
    :

  • AsmGuru62AsmGuru62 Posts: 6,519Member
    : You should get WM_DESTROY in the children windows. Can you show us some code?
    :
    : : [b][red]This message was edited by PAG at 2003-4-26 14:31:50[/red][/b][hr]
    : : I have this MDI application, which creates a (random) number of mdi childrens during it's existence. So what im wondering about is when I close the main window(which all child windows are in) will they get destroyed automatically or do I have to destroy them myself? Why im wondering is, I tried putting a message box in the WM_DESTROY case in the childs message handling procedure. And when I run the app and create a couple of child windows and exit the application with the child windows still visible, i get no message box to show...
    : :
    : : edit. o yea, this is under the normal Win32 API not MFC or any of that stuff...
    : :
    : :
    : :
    :
    :
    [blue]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/Windowing/MultipleDocumentInterface/MultipleDocumentInterfaceReference/MultipleDocumentInterfaceMessages/WM_MDIDESTROY.asp[/blue]
Sign In or Register to comment.