class CBmprgbhsvDoc : public CDocument
{
protected: // create from serialization only
CBmprgbhsvDoc();
DECLARE_DYNCREATE(CBmprgbhsvDoc)// Attributes
public:
   public:
HDIB GetHDIB() const
{ return m_hDIB; }
CPalette* GetDocPalette() const
{ return m_palDIB; }
CSize GetDocSize() const
{ return m_sizeDoc; }// Operations
public:// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBmprgbhsvDoc)
public:
virtual BOOL OnNewDocument();
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
virtual void DeleteContents();
//}}AFX_VIRTUAL// Implementation
public:
virtual ~CBmprgbhsvDoc();
    int m_nColorIndex;
void ReplaceHDIB(HDIB hDIB);
void InitDIBData();
COLORREF m_refColorBKG; // 背景色
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endifprotected:
    HDIB m_hDIB;
CPalette* m_palDIB;
CSize m_sizeDoc;

// Generated message map functions
protected:
//{{AFX_MSG(CBmprgbhsvDoc)
// NOTE - the ClassWizard will add and remove member functions here.
//    DO NOT EDIT what you see in these blocks of generated code !
    afx_msg void OnFileReopen();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

解决方案 »

  1.   

    attribute,Operations,Overrides,Implementation?
    不清楚你的问题
      

  2.   

    attribute:属性;Opertions:操作;Overrides:重载;Implementation:实现
    我的理解是程序员只是理解的需要,这样分开的话,就容易看懂自己和别人的代码,不知这样理解对否?
      

  3.   

    更进一步是为了方便IDE以后进行RAD扩展
      

  4.   

    attribute:属性;Opertions:操作;Overrides:重载;Implementation:实现
    那么他们有什么区别阿,比如opertions和implemention之间;attribute里面也可以定义操作阿