During I using vs2005 to develop a program,I encounter a very strange problem,detail:
when i create a button called "IDC_BTN_LOG",the create action:
//画日志按钮
m_logBtn.Create(NULL,WS_CHILD | WS_VISIBLE ,CRect(560,150,560+65,150+65),this,IDC_BTN_LOG);
m_logBtn.SetImage(IDB_BITMAP_LOGNORMAL,IDB_BITMAP_LOGHOVER,IDB_BITMAP_LOGDOWN,IDB_BITMAP_CLOSENORMAL);
the message map:
ON_BN_CLICKED(IDC_BTN_LOG, &CMarsWatchingDlg::OnBnClickedLog)
and then I add a breakpoint at here:
void CMarsWatchingDlg::OnBnClickedLog()
{
// TODO: 在此添加控件通知处理程序代码
* CLogDlg dlg1;
dlg1.DoModal();
}
at the position "*",when i click button IDC_BTN_LOG,i want they jump to the function OnBnClickedLog(),but an unbelievable situation occur,the jump to
void CMarsWatchingDlg::OnBnClickedLog()
{
// TODO: 在此添加控件通知处理程序代码
CLogDlg dlg1;
dlg1.DoModal();
}
here "->",i have no idea why they jump to there?So i clear the obj,and then recompile,and then this situation occur again,does someone encounter this situation?
I need help,Thanks very much.....
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.