|
-
June 7th, 1999, 03:30 PM
#1
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
-
June 8th, 1999, 12:38 PM
#2
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 ;-)
-
June 9th, 1999, 09:22 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|