How to Get Event from Controls in Docking Dialog
-
i have create Docking Dialog with CDialog CDialogBar m_wndDlgBar; in preCreateWindow
if (!m_wndDlgBar.Create(this, IDD_COMMAND_WINDOW,
WS_CHILD | WS_VISIBLE | CBRS_BOTTOM|CBRS_TOOLTIPS|CBRS_GRIPPER |CBRS_FLYBY| CBRS_SIZE_DYNAMIC, IDD_COMMAND_WINDOW))
{
TRACE0("Failed to create DlgBar\n");
return -1; // Fail to create.
}
m_wndDlgBar.EnableDocking (CBRS_ALIGN_BOTTOM );
EnableDocking(CBRS_ALIGN_BOTTOM );
DockControlBar(&m_wndDlgBar);it Work fine. it display dialog with no error. but it does not give any event. i have create Class ClsCommandWindow for IDD_COMMAND_WINDOW. in IDD_CCOMMAND_WINDOW i put 2 EditBox and one Button, one of Edit Box apply from Class CMyEdit because i have to use onChar Event. now the DialogBar display dialog from it ID(IDD_CCOMMAND_WINDOW). with no use of Class. because it is not using class any event from that dialog box does not work. When i TRACE ("%i\n",nChar); on OnChar it just did nothing. please some one help me on this how to get event form that dialog box. Thanks Amrit
-
i have create Docking Dialog with CDialog CDialogBar m_wndDlgBar; in preCreateWindow
if (!m_wndDlgBar.Create(this, IDD_COMMAND_WINDOW,
WS_CHILD | WS_VISIBLE | CBRS_BOTTOM|CBRS_TOOLTIPS|CBRS_GRIPPER |CBRS_FLYBY| CBRS_SIZE_DYNAMIC, IDD_COMMAND_WINDOW))
{
TRACE0("Failed to create DlgBar\n");
return -1; // Fail to create.
}
m_wndDlgBar.EnableDocking (CBRS_ALIGN_BOTTOM );
EnableDocking(CBRS_ALIGN_BOTTOM );
DockControlBar(&m_wndDlgBar);it Work fine. it display dialog with no error. but it does not give any event. i have create Class ClsCommandWindow for IDD_COMMAND_WINDOW. in IDD_CCOMMAND_WINDOW i put 2 EditBox and one Button, one of Edit Box apply from Class CMyEdit because i have to use onChar Event. now the DialogBar display dialog from it ID(IDD_CCOMMAND_WINDOW). with no use of Class. because it is not using class any event from that dialog box does not work. When i TRACE ("%i\n",nChar); on OnChar it just did nothing. please some one help me on this how to get event form that dialog box. Thanks Amrit