Commit 087ba42b authored by Chris Morgan's avatar Chris Morgan Committed by Alexandre Julliard

Added 3D border around control. Fixed monthcal control popup. Added

WM_SIZE support. Optimized drawing. Added WM_LBUTTONUP handling. Handle DTS_RIGHTALIGN style. Fixed handling of formatting styles, date is now displayed properly for DTS_SHORTDATEFORMAT.
parent 043c3e79
...@@ -18,9 +18,11 @@ typedef struct tagDATETIME_INFO ...@@ -18,9 +18,11 @@ typedef struct tagDATETIME_INFO
SYSTEMTIME date; SYSTEMTIME date;
BOOL dateValid; BOOL dateValid;
HWND hwndCheckbut; HWND hwndCheckbut;
RECT rect; RECT rcClient; /* rect around the edge of the window */
RECT checkbox; RECT rcDraw; /* rect inside of the border */
RECT calbutton; RECT checkbox; /* checkbox allowing the control to be enabled/disabled */
RECT calbutton; /* button that toggles the dropdown of the monthcal control */
BOOL bCalDepressed; /* TRUE = cal button is depressed */
int select; int select;
HFONT hFont; HFONT hFont;
int nrFieldsAllocated; int nrFieldsAllocated;
...@@ -30,6 +32,7 @@ typedef struct tagDATETIME_INFO ...@@ -30,6 +32,7 @@ typedef struct tagDATETIME_INFO
RECT *fieldRect; RECT *fieldRect;
int *buflen; int *buflen;
char textbuf[256]; char textbuf[256];
POINT monthcal_pos;
} DATETIME_INFO, *LPDATETIME_INFO; } DATETIME_INFO, *LPDATETIME_INFO;
extern VOID DATETIME_Register (VOID); extern VOID DATETIME_Register (VOID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment