class CObject
{
public:
virtual CRuntimeClass* GetRuntimeClass() const;
virtual ~CObject();
virtual void Serialize(CArchive& ar);
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
};
class CCmdTarget : public CObject
{
virtual CRuntimeClass* GetRuntimeClass() const;
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra,AFX_CMDHANDLERINFO* pHandlerInfo);
virtual void OnFinalRelease();
virtual BOOL IsInvokeAllowed(DISPID dispid);
virtual BOOL GetDispatchIID(IID* pIID);
virtual UINT GetTypeInfoCount();
virtual CTypeLibCache* GetTypeLibCache();
virtual HRESULT GetTypeLib(LCID lcid, LPTYPELIB* ppTypeLib);
virtual ~CCmdTarget();
virtual void Dump(CDumpContext& dc) const;
virtual void AssertValid() const;
virtual const AFX_MSGMAP* GetMessageMap() const;
virtual const AFX_OLECMDMAP* GetCommandMap() const;
virtual const AFX_DISPMAP* GetDispatchMap() const;
virtual const AFX_CONNECTIONMAP* GetConnectionMap() const;
virtual const AFX_INTERFACEMAP* GetInterfaceMap() const;
virtual const AFX_EVENTSINKMAP* GetEventSinkMap() const;
virtual BOOL OnCreateAggregates();
virtual LPUNKNOWN GetInterfaceHook(const void*);
virtual BOOL GetExtraConnectionPoints(CPtrArray* pConnPoints);
virtual LPCONNECTIONPOINT GetConnectionHook(const IID& iid);
};
class CWnd : public CCmdTarget
{
virtual CRuntimeClass* GetRuntimeClass() const;
virtual void PreSubclassWindow();
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,CWnd* pParentWnd, UINT nID,CCreateContext* pContext = 0);
virtual BOOL DestroyWindow();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void CalcWindowRect(LPRECT lpClientRect,UINT nAdjustType = adjustBorder);
virtual int OnToolHitTest(CPoint point, TTTOOLINFOA* pTI) const;
virtual CScrollBar* GetScrollBarCtrl(int nBar) const;
virtual void WinHelpA(DWORD dwData, UINT nCmd = 0x0001L);
virtual BOOL ContinueModal();
virtual void EndModalLoop(int nResult);
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
virtual WNDPROC* GetSuperWndProcAddr();
virtual void DoDataExchange(CDataExchange* pDX);
virtual void BeginModalState();
virtual void EndModalState();
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL OnAmbientProperty(COleControlSite* pSite, DISPID dispid,VARIANT* pvar);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
virtual LRESULT DefWindowProcA(UINT message, WPARAM wParam, LPARAM lParam);
virtual void PostNcDestroy();
virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
virtual ~CWnd();
virtual BOOL CheckAutoCenter();
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
virtual BOOL IsFrameWnd() const;
virtual void OnFinalRelease();
virtual BOOL SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO* pOccDialogInfo);
virtual const AFX_MSGMAP* GetMessageMap() const;
};
class CDialog : public CWnd
{
virtual CRuntimeClass* GetRuntimeClass() const;
virtual int DoModal();
virtual BOOL OnInitDialog();
virtual void OnSetFont(CFont* pFont);
virtual void OnOK();
virtual void OnCancel();
virtual ~CDialog();
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra,AFX_CMDHANDLERINFO* pHandlerInfo);
virtual BOOL CheckAutoCenter();
virtual BOOL SetOccDialogInfo(_AFX_OCC_DIALOG_INFO* pOccDialogInfo);
virtual void PreInitDialog();
virtual const AFX_MSGMAP* GetMessageMap() const;
};
/////////////////////step2.///////////////////////////
class CObject
{
public:
virtual CRuntimeClass* GetRuntimeClass() const;
virtual ~CObject();
virtual void Serialize(CArchive& ar);
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
};
class CCmdTarget : public CObject
{
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra,AFX_CMDHANDLERINFO* pHandlerInfo);
virtual void OnFinalRelease();
virtual BOOL IsInvokeAllowed(DISPID dispid);
virtual BOOL GetDispatchIID(IID* pIID);
virtual UINT GetTypeInfoCount();
virtual CTypeLibCache* GetTypeLibCache();
virtual HRESULT GetTypeLib(LCID lcid, LPTYPELIB* ppTypeLib);
virtual const AFX_MSGMAP* GetMessageMap() const;
virtual const AFX_OLECMDMAP* GetCommandMap() const;
virtual const AFX_DISPMAP* GetDispatchMap() const;
virtual const AFX_CONNECTIONMAP* GetConnectionMap() const;
virtual const AFX_INTERFACEMAP* GetInterfaceMap() const;
virtual const AFX_EVENTSINKMAP* GetEventSinkMap() const;
virtual BOOL OnCreateAggregates();
virtual LPUNKNOWN GetInterfaceHook(const void*);
virtual BOOL GetExtraConnectionPoints(CPtrArray* pConnPoints);
virtual LPCONNECTIONPOINT GetConnectionHook(const IID& iid);
};
class CWnd : public CCmdTarget
{
virtual void PreSubclassWindow();
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,CWnd* pParentWnd, UINT nID,CCreateContext* pContext = 0);
virtual BOOL DestroyWindow();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void CalcWindowRect(LPRECT lpClientRect,UINT nAdjustType = adjustBorder);
virtual int OnToolHitTest(CPoint point, TTTOOLINFOA* pTI) const;
virtual CScrollBar* GetScrollBarCtrl(int nBar) const;
virtual void WinHelpA(DWORD dwData, UINT nCmd = 0x0001L);
virtual BOOL ContinueModal();
virtual void EndModalLoop(int nResult);
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
virtual WNDPROC* GetSuperWndProcAddr();
virtual void DoDataExchange(CDataExchange* pDX);
virtual void BeginModalState();
virtual void EndModalState();
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual BOOL OnAmbientProperty(COleControlSite* pSite, DISPID dispid,VARIANT* pvar);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
virtual LRESULT DefWindowProcA(UINT message, WPARAM wParam, LPARAM lParam);
virtual void PostNcDestroy();
virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
virtual BOOL CheckAutoCenter();
virtual BOOL IsFrameWnd() const;
virtual BOOL SetOccDialogInfo(struct _AFX_OCC_DIALOG_INFO* pOccDialogInfo);
};
class CDialog : public CWnd
{
virtual int DoModal();
virtual BOOL OnInitDialog();
virtual void OnSetFont(CFont* pFont);
virtual void OnOK();
virtual void OnCancel();
virtual void PreInitDialog();
};
- 1
- 2
前往页