高分请教,关于一个对话框里的,一个编辑框CEDIT的问题
我想让我的,一个对话框程序里面的,一个编辑框里,当编辑狂按下回车的时候,处理一些东西,所以,我派生一个,,CMyEdit : public CEdit,并增加virtualvirtual BOOL PreTranslateMessage(MSG* pMsg);
那么我怎么让我的,那个对话框类里面的,那个EDIT,用我自己的,CMyEdit
我在 CMyEdit *aaa;这样就可以了嘛??但是好象不行啊,,
希望高手指点,
class CMyEdit : public CEdit
{
// Construction
public:
CMyEdit();
// Attributes
public:}
BOOL CMyEdit::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
MessageBox("dfdf");
return CEdit::PreTranslateMessage(pMsg);
}