Hi,Mathias
Following is the method to made a modeless dialog,in Origin Version 7.5 ProSR6,you should change the function
DoMyDialog() as belowing:
static MyDialog MyDlg;
BOOL DoMyDialog(BOOL bClose=FALSE)
{
if(MyDlg.GetWindow())
{
if(!bClose)
{
out_str("Dialog already open");
return FALSE; //already open
}
//we will need to close it
return TRUE;
}
return MyDlg.Create();
}
In Origin Version 8.0,the method as you mention will works well.
Thanks
Vinden
Edited by - vinden on 04/29/2008 10:18:21 PM