to track changing the selection of combobox
-
Dear MFC Gurus! I'm writting SDI-based application that has DialogBar with combobox control. This DialogBar is initialized as the follows: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { ... if (!m_Bar.Create(this,IDD_BARDLG,CBRS_TOP,ID_MYBARDLG)) { AfxMessageBox(_T("Failed to create dialog bar!"),MB_ICONSTOP); return -1; }; }; where m_Bar is CDialogBar. IDD_BARDLG doesn't have its class derived from CDialog! How to capture ON_CBN_SELCHANGE message in CMainFrame class from combobox control belonging m_Bar? In other words, I need to track changing the selection of combobox. What should I do? Yours sincerely, Alex Bash
-
Dear MFC Gurus! I'm writting SDI-based application that has DialogBar with combobox control. This DialogBar is initialized as the follows: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { ... if (!m_Bar.Create(this,IDD_BARDLG,CBRS_TOP,ID_MYBARDLG)) { AfxMessageBox(_T("Failed to create dialog bar!"),MB_ICONSTOP); return -1; }; }; where m_Bar is CDialogBar. IDD_BARDLG doesn't have its class derived from CDialog! How to capture ON_CBN_SELCHANGE message in CMainFrame class from combobox control belonging m_Bar? In other words, I need to track changing the selection of combobox. What should I do? Yours sincerely, Alex Bash
-
Trap it in your dialog bar. Then, post a command (eg:
CMD_CHECK_COMBO
) to the mainframe that causes it (the mainframe) to check the selection of the combo. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com