Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to Get Event from Controls in Docking Dialog

How to Get Event from Controls in Docking Dialog

Scheduled Pinned Locked Moved C / C++ / MFC
helpdebuggingtutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 2119844
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • M Member 2119844

      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

      S Offline
      S Offline
      Sunil P V
      wrote on last edited by
      #2

      You need to subclass the dialog so that it can get events.

      Sunil

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups