我动态创建一个button控件
   CRect rectWnd;
   GetWindowRect(rectWnd);
   SetWindowPos(NULL, 0, 0,
   rectWnd.Width(),
   rectWnd.Height(),
   SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);   m_button.CreateEx( WS_EX_CLIENTEDGE, _T("BUTTON"), NULL,
   WS_CHILD | WS_VISIBLE|WS_TABSTOP| WS_BORDER , // 
   rectWnd.Width()/4-10, rectWnd.Height()-53, 80, 24, m_hWnd, 0, 0 );
   m_button.SetWindowText("相关资料");
   m_button.SetFont( GetFont() );   CenterWindow();
//在头文件里
#define IDC_BUTTON3001       3001afx_msg void OnButton();
//.cpp文件
ON_BN_CLICKED(IDC_BUTTON3001, OnButton)void CClPropertySheet::OnButton() 
{
int i;
i=i+1;
}运行后这么点击button 也不运行到OnButton()里
我设断点,请问我这方法对不对?应该这样?