如在MainFrm.h中 CButton m_btnTest;
在MainFrm.cpp中 m_btnTest.Create("abc",WS_VISIBLE|WS_CHILD,CRect(200,0,280,20),this,300);
是什么原因呢,
然后我加了
ON_BN_CLICKED(300,OnButtonTest)
OnButtonTest是这样定义的afx_msg void OnButtonTest();的,是不会有问题的。
还是好象是灰的呢