Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2008 为什么VC++;资源编辑器没有将自动生成的代码放在正确的位置?_Visual Studio 2008_Visual C++_Mfc - Fatal编程技术网

Visual studio 2008 为什么VC++;资源编辑器没有将自动生成的代码放在正确的位置?

Visual studio 2008 为什么VC++;资源编辑器没有将自动生成的代码放在正确的位置?,visual-studio-2008,visual-c++,mfc,Visual Studio 2008,Visual C++,Mfc,在MyControl.h中,我有: class CMyControl: public CRichEditCtrl { DECLARE_DYNAMIC( CMyControl) public: CMyControl(); virtual ~CMyControl(); public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMyCont

在MyControl.h中,我有:

class CMyControl: public CRichEditCtrl
{
    DECLARE_DYNAMIC( CMyControl)
public:
    CMyControl();
    virtual ~CMyControl();
public:

// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CMyControl)
    //}}AFX_VIRTUAL

    // Generated message map functions
protected:
    //{{AFX_MSG(CMyControl)
    //}}AFX_MSG

    DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnEnKillfocus();
    afx_msg void OnEnChange();
    afx_msg void OnEnMsgfilter(NMHDR *pNMHDR, LRESULT *pResult);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
每当我使用资源编辑器添加消息处理程序、事件重写方法或对话框控件成员变量时,它们总是添加在类的末尾。{{AFX…}}块的整个意义不就是要使它有条理吗?

可能重复