// MainFrm.h : interface of the CMainFrame class
//
#pragma once
#include "afxcoll.h"
#include "DLLManager.h"
#define PLUGIN_TBBUTTON_CLICK (WM_USER + 0)
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
protected:
CSplitterWnd m_wndSplitter;
public:
// Operations
public:
// Overrides
public:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// CReBar m_wndReBar;
// CDialogBar m_wndDlgBar;
// Generated message map functions
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPlugLoadPlugins();
afx_msg void OnClose();
public:
// Used to hold the number of DLLs loaded
int m_nNumberOfDLLs;
// Used to hold pointers to loaded DLLs
DLLManager *m_pLoadedDLLs;
// Used to indicate whether Plug-Ins are loaded atleast once or not
bool m_bIsPlugInLoaded;
public:
// Used to load all available DLLs
// int LoadDLLs(void);
// Used to pump message into DLLs
void OnCallPlugInManager(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
// Used to return the toolbar object
CToolBar * GetToolBarObject(void);
// Used to hold the pathnames of the DLLs currently loaded
CStringList m_szListDLLsCurrentlyLoaded;
};