2 Star 7 Fork 7

jiangxiaogang/SerialTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
AboutBox.c 996 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include "stdafx.h"
#include "resource.h"
#include "BoxHelper.h"
static void OnInitDialog(HWND hWnd)
{
SetWindowText(hWnd,"关于");
SetDlgItemText(hWnd,IDC_TEXT_CAPTION,"串口调试工具");
SetDlgItemText(hWnd,IDC_TEXT_VERSION,"版本:2.2.4");
SetDlgItemText(hWnd,IDC_TEXT_DATE,"日期:2022.03.15");
SetDlgItemText(hWnd,IDC_TEXT_EMAIL,"作者:kerndev@foxmail.com");
SetDlgItemText(hWnd,IDC_EDIT_LIC,"本工具是自由软件,可任意复制传播使用。\r\nhttps://gitee.com/kerndev/SerialTool\r\n");
}
INT_PTR WINAPI AboutProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_INITDIALOG:
OnInitDialog(hWnd);
break;
case WM_COMMAND:
switch(wParam)
{
case IDOK:
case IDCANCEL:
EndDialog(hWnd,0);
break;
}
break;
}
return 0;
}
void PopupAboutBox(HINSTANCE hInst, HWND hParent)
{
static BOOL bLock;
if(bLock==0)
{
bLock = 1;
DialogBox(hInst,MAKEINTRESOURCE(IDD_ABOUTBOX),hParent,AboutProc);
bLock = 0;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/kerndev/SerialTool.git
git@gitee.com:kerndev/SerialTool.git
kerndev
SerialTool
SerialTool
master

搜索帮助