INFO: ??????? CBitmapButton ?? CDialogBar ? CFormView

?????? ????????? ?????? ?????????
???? ???????: 98041 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
?????? ???? CBitmapButton ?? ?? ???? ???? ??????? ???? CBitmapButton::AutoLoad() ?? ???? OnInitDialog() ????? ??????. ???? ?? ?????? CDialogBar ? CFormView ????? ?? ??? CDialog ??? ?? ????? ??? ???? OnInitDialog().

???????? CBitmapButton ?? CDialogBar ????? ???? Create() ???????? AutoLoad() ??? ??????? ????? Create() ????? ????????. ?? ????????? ???????? ?????? ???? ???? ??? ??????? ??? ?????? ??? CMyDialogBar ?? CDialogBar ????? m_MyBitmapButton ??? CBitmapButton CMyDialogBar:
   BOOL CMyDialogBar::Create(CWnd* pParent, UINT nIDTemplate,
                             UINT nStyle, UINT nID)
   {
      // Call base class create to create the dialog bar window.
      BOOL bReturn = CDialogBar::Create(pParent, nIDTemplate,
                                        nStyle, nID);
      // Load bitmaps for the button and attach
      // to the control in the dialog box.
      if (bReturn)
         m_MyBitmapButton.AutoLoad(IDC_MYBITMAPBUTTON, this);

      return bReturn;
   }
		
???????? CBitmapButton ?? CFormView ??????? AutoLoad() ?? ???? CFormView OnInitialUpdate(). ?? ????????? ???????? ?????? ???? ???? ???, ??? ?????? ??? CMyFormView ?? CFormView ????? m_MyBitmapButton ??? CBitmapButton CMyFormView:
   void CMyFormView::OnInitialUpdate()
   {
      CFormView::OnInitialUpdate();
      m_MyBitmapButton.AutoLoad(IDC_MYBITMAPBUTTON, this);
   }
		
????? ???? | ?? ????

???????

???? ???????: 98041 - ????? ??? ??????: 28/???? ?????/1435 - ??????: 3.1
????? ???
  • Microsoft Foundation Class Library 4.2, ????? ?????? ??:
    • Microsoft Visual C++ 1.0 Professional Edition
    • Microsoft Visual C++ 1.5 Professional Edition
    • Microsoft Visual C++ 1.51
    • Microsoft Visual C++ 1.52 Professional Edition
    • Microsoft Visual C++ 1.0 Professional Edition
    • Microsoft Visual C++ 2.0 Professional Edition
    • Microsoft Visual C++ 2.1
    • Microsoft Visual C++ 2.2
    • Microsoft Visual C++ 4.0 Standard Edition
????? ??????: 
kbnosurvey kbarchive kbmt kbdocview kbinfo kbmfcctrlbar kbuidesign KB98041 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????98041

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com