The information in this article applies to:
To attach a CBitmapButton object to a button in a dialog box, call the CBitmapButton::AutoLoad() function in the OnInitDialog() function for the dialog box. Note, that the CDialogBar and CFormView classes are not derived from the CDialog class and do not have an OnInitDialog() function. To use a CBitmapButton with a CDialogBar, override the Create() function and call AutoLoad() after calling the base class version of Create(). In the following code, which demonstrates this process, the CMyDialogBar class is derived from CDialogBar and m_MyBitmapButton is a CBitmapButton member of CMyDialogBar:
To use a CBitmapButton with a CFormView, call AutoLoad() in the CFormView
OnInitialUpdate() function. In the following code, which demonstrates this,
the CMyFormView class is derived from CFormView and m_MyBitmapButton is a
CBitmapButton member of CMyFormView:
SUMMARYAdditional query words: kbinf 1.00 1.50 1.51 1.52 2.00 2.10 2.50 2.51 2.52 3.00 3.10 4.00
Keywords : kbDocView kbMFC KbUIDesign kbVC100 kbVC150 kbVC200 kbVC400 kbGrpMFCATL kbMFCCtrlBar |
Last Reviewed: November 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |