how to create a modeless CDialog in MFC?

Hi,

I have been away from MFC for a while... I need to create a modeless CDialog subclass and I tried:

1
2
3
GenericGrid dlg;
dlg.Create(IDD_GenericGrid);
dlg.ShowWindow(SW_SHOW | SW_RESTORE);


the dialog is not displayed!
IDD_GenericGrid is the resource template id.

What is going on?

Regards,
Juan
Simply amazing what one can find scraping the bowels of the interwebz...

https://duckduckgo.com/?q=mfc+modeless+dialog&t=ffsb&ia=web
Topic archived. No new replies allowed.