37 lines
		
	
	
		
			751 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			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
 |