2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MYWIN_USER_TIMESET_H__
|
|
|
|
|
|
#define MYWIN_USER_TIMESET_H__
|
|
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
#include "mywin_inc.h"
|
|
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>ĶԻ<C4B6><D4BB><EFBFBD>
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
// <20><>Ϣ<EFBFBD><CFA2><EFBFBD>Ļ<EFBFBD><C4BB>ƺ<EFBFBD><C6BA><EFBFBD>
|
|
|
|
|
|
void TIMESETBOX_DefaultPaint(WIN_TimeSetboxStruct *timesetbox);
|
|
|
|
|
|
|
|
|
|
|
|
// <20><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
void TIMESETBOX_defaultMsgLoop(WIN_TimeSetboxStruct *timesetbox,
|
|
|
|
|
|
WIN_MsgStruct *msg);
|
|
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
|
|
|
|
|
|
int TIMESETBOX_TimeSet(void);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
|
|
|
#endif
|