SysAllocStringLen16 needs to handle NULL pointers, too.
[wine] / include / datetime.h
1 /*
2  * Date and time picker class extra info
3  *
4  * Copyright 1998 Eric Kohl
5  * Copyright 1999 Alex Priem
6  */
7
8 #ifndef __WINE_DATETIME_H
9 #define __WINE_DATETIME_H
10
11 #include "windef.h"
12 #include "winbase.h"
13
14 typedef struct tagDATETIME_INFO
15 {
16         HWND hMonthCal;
17         HWND hUpdown;
18         SYSTEMTIME date;
19         BOOL dateValid;
20         HWND hwndCheckbut;
21         RECT rect;
22         RECT checkbox;
23         RECT daytxt;
24         RECT daynumtxt;
25         RECT rmonthtxt;
26         RECT yeartxt;
27         RECT calbutton;
28         int  select;
29         HFONT hFont;
30 } DATETIME_INFO, *LPDATETIME_INFO;
31
32 extern VOID DATETIME_Register (VOID);
33 extern VOID DATETIME_Unregister (VOID);
34
35 #define DTHT_NONE     0
36 #define DTHT_MCPOPUP  1
37 #define DTHT_YEAR     2
38 #define DTHT_DAYNUM   3
39 #define DTHT_MONTH    4
40 #define DTHT_DAY      5
41 #define DTHT_CHECKBOX 6
42 #define DTHT_GOTFOCUS 128
43
44 #endif  /* __WINE_DATETIME_H */