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
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 ;-)
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