www.mxdraw.com
内容索引主面
前一个向上下一个
CMxDrawSystemEventReactor 类

系统事件反应器

C++
class CMxDrawSystemEventReactor;

MxDrawSystemEventReactor.h

例如: samplePropertyEditor中的例子.

    // .h
    class CPESystemEventReactor : CMxDrawSystemEventReactor
    {
    public:
        virtual ~CPESystemEventReactor(void);

        virtual void OcxDlgCreateComplete(McApDocument* pDoc);
    protected:
        CPESystemEventReactor(void);

    private:
        static CPESystemEventReactor s_obj;
    };
    // .cpp
    CPESystemEventReactor CPESystemEventReactor::s_obj;

    CPESystemEventReactor::~CPESystemEventReactor(void)
    {
        MxDraw::UnRegistSystemEventReactor(this);
    }

    CPESystemEventReactor::CPESystemEventReactor(void)
    {
        MxDraw::RegistSystemEventReactor(this);
    }

    void CPESystemEventReactor::OcxDlgCreateComplete(McApDocument* pDoc)
    {
        if(pDoc != NULL)
        {
            CWinMsg* pWndMsg = CWinMsgContainer::Instance().docData(pDoc);
            pWndMsg->Regist();
        }
    }
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!