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 Tech Support » Assertion failure while create tab paged dialog on my own dialogbar Collapse All
Subject Author Date
Nitesh Singh Dec 15, 2006 - 3:45 AM

I am getting assertion failure when I am creating a dialog with more than one tab pages on it. And that dialog is placed on a dialogbar. Please note that I can not use your CExtControlBar because of the incompatibility with MFC control bars.
I have attached the sample project by mail. Please reply as soon as possible.

Technical Support Dec 15, 2006 - 10:37 AM

First, remove the following lines from the CChildDlg’s message map, because these controls do not exist:

DDX_Control(pDX, IDOK, m_BtnOK);
DDX_Control(pDX, IDCANCEL, m_BtnCancel);
The second error is caused by that you did not specify the class name for the IDC_TAB_CONTAINER custom control. The class name should be ProfUIS-TabPageContainer.

Please note because you are using the CControlBar instead of CExtControlBar, you have to manually resize the CChildDlg dialog to fit the control bar client area.

Nitesh Singh Dec 16, 2006 - 12:17 AM

oh.......... I was not knowing that this small thing was so important.........

thanks alot...