// InitDialogBar.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù. // #include "stdafx.h" #include "AdminToolClient.h" #include "InitDialogBar.h" // CInitDialogBar ´ëÈ­ »óÀÚÀÔ´Ï´Ù. IMPLEMENT_DYNAMIC(CInitDialogBar, CDialogBar) BEGIN_MESSAGE_MAP(CInitDialogBar, CDialogBar) END_MESSAGE_MAP() CInitDialogBar::CInitDialogBar() { // In derived classes set intial // state of control(s) here } CInitDialogBar::~CInitDialogBar() { } 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; } 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::OnInitDialogBar() { // Support for the MFC DDX model // If you do not want this do not call the base class // from derived classes UpdateData(FALSE); return TRUE; } void CInitDialogBar::DoDataExchange(CDataExchange* pDX) { //Derived Classes Overide this function ASSERT(pDX); CDialogBar::DoDataExchange(pDX); // In derived class call the DDX_??? functions to set/retrieve values // of your controls. See example derived class for how to do this. } // CInitDialogBar ¸Þ½ÃÁö 󸮱âÀÔ´Ï´Ù.