CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Posts
    2

    Dialog Bar- Updating Edit Boxes, etc.

    Hello All!

    I am having difficulty getting the controls to work in the Dialog Bar. I cannot get Buttons enabled and I cannot update data/text to edit boxes like you would normally be able to with a regular old Dialog Box.. What am I missing??? Why is the Dialog Bar not processing any messages to or from the controls?? Can anyone Help?

    Much obliged,

    Tim Southerland


  2. #2
    Join Date
    Mar 1999
    Posts
    3

    Re: Dialog Bar- Updating Edit Boxes, etc.

    You have to handle the buttons in your View class (who knows why). I have button handlers

    void CMyView::OnButton1()
    {
    OnAllButtons(1);
    }

    I also update a listbox by

    CMainFrame *pFrame = (CMainFrame *) AfxGetApp()->m_pMainWnd;
    CDialogBar *pBar = &pFrame->m_wndFkeyBar;
    CListBox *pLB = (CListBox*) pBar->GetDlgItem(IDC_REPORT_BOX);

    and then using it as normal
    Presumably edit boxes should be somewhat similar ;-)



  3. #3
    Join Date
    Jun 1999
    Posts
    2

    Re: Dialog Bar- Updating Edit Boxes, etc.

    Hey Ed..
    Thanks for your response, I appreciate your input! I have a question though.. Where does the function

    OnAllButtons(1);



    come from? Is it a member function of one of the classes or is it something I need implement myself.. I did a search on it in Visual C++ 5.0 but could not find it.. I appreciate your help!

    Thanks
    Tim


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured