This i know is gonna be simple but it is foxing me.
I have a dialog based application. On the main form it minimizes and maximises correctly, if i open a pop-up dialog from the main dialog then minimize the pop-up box it minimizes to the corner of the desktop not the taskbar, leaving the parent window showing (disabled) on the desktop.
I have tried <popupdialog>->SetParent(this) before calling DoModal but this creates an exception. Has anybody any ideas what i am doing wrong.