Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtColorDlg and DoModal() Collapse All
Subject Author Date
Ionut Ceausu Mar 11, 2005 - 6:48 AM

Let’s take the following sample:


            CExtColorDlg colorDlg;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>


            colorDlg.DoModal();<o:p></o:p>


            colorDlg.DoModal();<o:p></o:p>


I expected to display to consequent color picker dialog. Instead it fires an ASSERT. What’s wrong in this code?


 Thanks.

Technical Support Mar 11, 2005 - 9:05 AM

Thank you for the bug information. It is not difficult to fix it. Please add the following virtual method to the CExtColorDlg class:

int CExtColorDlg::DoModal()
    {
        m_bDialogInitColplete = false;
        int nRetVal = CExtResizableDialog::DoModal();
        return nRetVal;
    }