// TestToolbarDlg.cpp : implementation file // #include "stdafx.h" #include "TestEditor.h" #include "TestToolbarDlg.h" #ifdef _MFCDEBUGNEW #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #endif DllToolbarDlg* fCreateToolbarDlg(HWND parent) { HRESULT r = CreateDllDialog(parent,IDD_TOOLBAR,&g_Toolbar); return (DllToolbarDlg*)g_Toolbar; } ///////////////////////////////////////////////////////////////////////////// // TestToolbarDlg dialog TestToolbarDlg::TestToolbarDlg(CWnd* pParent /*=NULL*/) : DllToolbarDlg(TestToolbarDlg::IDD, pParent) { //{{AFX_DATA_INIT(TestToolbarDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void TestToolbarDlg::DoDataExchange(CDataExchange* pDX) { DllToolbarDlg::DoDataExchange(pDX); //{{AFX_DATA_MAP(TestToolbarDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(TestToolbarDlg, DllToolbarDlg) //{{AFX_MSG_MAP(TestToolbarDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // TestToolbarDlg message handlers BOOL TestToolbarDlg::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class return DllToolbarDlg::PreTranslateMessage(pMsg); } BOOL TestToolbarDlg::OnInitDialog() { DllToolbarDlg::OnInitDialog(); // TODO: Add extra initialization here ActivateClosebutton(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } //this is the almost equivalent of OnInitDialog you should use if you want to //use the PluginInterface with GetInterface or if you want to be sure the editor is present void TestToolbarDlg::OnInterfaceInit() { } //called on WM_DESTROY void TestToolbarDlg::OnInterfaceEnd() { }