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.