对话框按钮简单使用实例
需要先添加对话框,并且修改确定按钮的ID值
.h文件
struct DecodeUint{
};
#define dim(x) (sizeof(x)/sizeof(x[0]))
LONG OnInit(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnCommand(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnClose(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
LONG OnBtnClick(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
.c文件
#include
#include
#include Border.h
#include resource.h
#include
struct DecodeUint DlgMessage[] = {
};
struct DecodeUint DlgCommand[] = {
};
HINSTANCE g_hInst;
HWND hStatic;
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
int WinMain(HINSTANCE hInstance,
{
}
BOOL CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
}
LONG OnCommand(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
}
LONG OnInit(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
}
LONG OnClose(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
}
LONG OnBtnClick(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
}
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)