|
本帖最后由 191817 于 2012-4-10 13:50 编辑
WINCE5.0下Button1按下没反应,代码贴出,不知道是什么问题。我用的是自己定制的SDK,TQ2440板子,望大侠指教。
按键能显示,就是点击没有效果。好像不执行MessageBox(_T("那就吃吧!"));
// MyDialog.cpp : 实现文件
//
#include "stdafx.h"
#include "TQ2440_fist.h"
#include "MyDialog.h"
// MyDialog 对话框
IMPLEMENT_DYNAMIC(MyDialog, CDialog)
MyDialog::MyDialog(CWnd* pParent /*=NULL*/)
: CDialog(MyDialog::IDD, pParent)
{
}
MyDialog::~MyDialog()
{
}
void MyDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(MyDialog, CDialog)
ON_BN_CLICKED(IDC_BUTTON2, &MyDialog::OnBnClickedButton2)
ON_BN_CLICKED(IDC_BUTTON1, &MyDialog::OnBnClickedButton1)
END_MESSAGE_MAP()
// MyDialog 消息处理程序
void MyDialog::OnBnClickedButton1()
{
// TODO: 在此添加控件通知处理程序代码
MessageBox(_T("那就吃吧!"));
}
void MyDialog::OnBnClickedButton2()
{
// TODO: 在此添加控件通知处理程序代码
CDialog::OnCancel();
} |
|