在CDialogBar里的Button句柄为空?
void CBarEx::OnButton1()
{
// TODO: Add your control notification handler code here
if(m_btn1.GetSafeHwnd() != NULL)
AfxMessageBox("TEST");
}CBarEx是继承CDialogBar的类。
m_btn1是IDC_BUTTON1,
OnButton1()是消息响应函数
void CBarEx::OnButton1()
{
// TODO: Add your control notification handler code here
if(m_btn1.GetSafeHwnd() != NULL)
AfxMessageBox("TEST");
}CBarEx是继承CDialogBar的类。
m_btn1是IDC_BUTTON1,
OnButton1()是消息响应函数
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货