Files
player/Project/Src/MyWinApp/mywin_user_timeset.h
andy d45df9714a 整理代码
1.解决一些编译警告
2.整理一些文件格式
2025-10-18 01:02:27 +08:00

37 lines
751 B
C

#ifndef MYWIN_USER_TIMESET_H__
#define MYWIN_USER_TIMESET_H__
#include "mywin_inc.h"
// 设置时间的对话框
typedef struct {
WIN_WindowStruct win;
int press;
int index;
char *title;
int year;
int mounth;
int date;
int hour;
int min;
int sec;
} WIN_TimeSetboxStruct;
WIN_TimeSetboxStruct *WIN_CreatTimeSetbox(
WIN_WindowStruct *base,
void (*msgLoop)(struct _WIN_WindowStruct *win, WIN_MsgStruct *msg), int x,
int y, int x_size, int y_size);
// 消息框的绘制函数
void TIMESETBOX_DefaultPaint(WIN_TimeSetboxStruct *timesetbox);
// 消息框的消息处理函数
void TIMESETBOX_defaultMsgLoop(WIN_TimeSetboxStruct *timesetbox,
WIN_MsgStruct *msg);
// 设置时间
int TIMESETBOX_TimeSet(void);
#endif