LRESULT CEditDialogBar::HandleInitDialog(WPARAM wParam, LPARAM lParam) { if (!CBCGPDialogBar::HandleInitDialog (wParam, lParam)) { return 0L; } return OnInitDialogBar(); }
BOOL CInitDialogBar::Create(CWnd * pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID) { if(!Create(pParentWnd, MAKEINTRESOURCE(nIDTemplate), nStyle, nID)) return FALSE; // Since there is no WM_INITDIALOG message we have to call // our own InitDialog function ourselves after m_hWnd is valid if(!OnInitDialogBar()) return FALSE; return TRUE; }
BOOL CInitDialogBar::Create(CWnd * pParentWnd, LPCTSTR lpszTemplateName, UINT nStyle, UINT nID) { // Let MFC Create the control if(!CDialogBar::Create(pParentWnd, lpszTemplateName, nStyle, nID)) return FALSE; // Since there is no WM_INITDIALOG message we have to call // our own InitDialog function ourselves after m_hWnd is valid if(!OnInitDialogBar()) return FALSE; return TRUE; }