Re: RunModalLoop and destructor
From: Sz Borbely (szabolcs_borbely_at_hotmail.com)
Date: 02/23/04
- Next message: Joseph M. Newcomer: "Re: Second unicode"
- Previous message: Marco: "Problem with CTreeCtrl in release version"
- In reply to: Jonas Nielsen: "RunModalLoop and destructor"
- Messages sorted by: [ date ] [ thread ]
Date: 23 Feb 2004 09:56:10 -0800
Implement the virtual void OnCancel(); and virtual void OnOK();
members in your DCialog derived class. These functions get called by
thr framework when the call to the modal dialog returns. You can
access the dialog controls in these functions and do proper clean-up.
Good Luck!
jonasn@mail.tele.dk (Jonas Nielsen) wrote in message news:<563b4521.0402230216.f613034@posting.google.com>...
> I have a dialog box started with RunModalLoop. In this dialog there is
> a list box with pointers to memory allocated with new. When i close
> the whole program i would like to call delete on these pointers.
>
> Unfortunately DestroyWindow() isn't called when the dialog is
> destroyed and the list box is already deleted in the destructor of the
> dialog.
>
> So, how do i do delete on these pointers ?
- Next message: Joseph M. Newcomer: "Re: Second unicode"
- Previous message: Marco: "Problem with CTreeCtrl in release version"
- In reply to: Jonas Nielsen: "RunModalLoop and destructor"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|