hi,
Add handler for PostNcDestroy and use delete this inside the handler as shown below
void CSendMessageDlg::PostNcDestroy()
{
CDialog::PostNcDestroy();
delete this;
}
i do this normally and i havent had any side effects, if u face any please post it !




Reply With Quote