I have a veiw from where i am calling a modeless dialog. In the view handler i have allocated memmory for this dialog dynamically. I can delete this object in either view's destructor or when the dialog box sends user defined message to the view. But the thing is when dialog box should send this user defined message.
1. shoud the dialog box send this user defined message on pressing OK button or Cancel button or some other button.
In modeless dialog box what action should be taken in Ok button and Cancel button
2. What does the PostNcDestroy member function have to do with modeless dialog
3. I found an example where view dynamically allocates memmory for modeless dialog and this dynamic object is not destroyed anywhere in the view.
But i found that in the modeless diaglog box there's postncdestroy member function in which " delete this" statememnt is made. The question is will this statement deletes the dynamically allocated object for modeless dialog box whose memmory is allocated in the view.