Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e15dff74
Commit
e15dff74
authored
Feb 03, 2000
by
Alex Priem
Committed by
Alexandre Julliard
Feb 03, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implementation of WM_SETFORMAT
- Reworked drawing/selection - Implementation of WM_KEYDOWN
parent
c956f67f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
12 deletions
+49
-12
datetime.c
dlls/comctl32/datetime.c
+0
-0
monthcal.c
dlls/comctl32/monthcal.c
+1
-1
datetime.h
include/datetime.h
+47
-11
monthcal.h
include/monthcal.h
+1
-0
No files found.
dlls/comctl32/datetime.c
View file @
e15dff74
This diff is collapsed.
Click to expand it.
dlls/comctl32/monthcal.c
View file @
e15dff74
...
...
@@ -34,7 +34,7 @@ DEFAULT_DEBUG_CHANNEL(monthcal)
* we want full month-names, and abbreviated weekdays, so these are
* defined here */
static
const
int
mdays
[]
=
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
,
0
};
const
int
mdays
[]
=
{
31
,
28
,
31
,
30
,
31
,
30
,
31
,
31
,
30
,
31
,
30
,
31
,
0
};
const
char
*
const
monthtxt
[]
=
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
...
...
include/datetime.h
View file @
e15dff74
...
...
@@ -20,25 +20,61 @@ typedef struct tagDATETIME_INFO
HWND
hwndCheckbut
;
RECT
rect
;
RECT
checkbox
;
RECT
daytxt
;
RECT
daynumtxt
;
RECT
rmonthtxt
;
RECT
yeartxt
;
RECT
calbutton
;
int
select
;
HFONT
hFont
;
int
nrFieldsAllocated
;
int
nrFields
;
int
haveFocus
;
int
*
fieldspec
;
RECT
*
fieldRect
;
int
*
buflen
;
char
textbuf
[
256
];
}
DATETIME_INFO
,
*
LPDATETIME_INFO
;
extern
VOID
DATETIME_Register
(
VOID
);
extern
VOID
DATETIME_Unregister
(
VOID
);
/* this list of defines is closely related to `allowedformatchars' defined
* in datetime.c; the high nibble indicates the `base type' of the format
* specifier.
* Do not change without first reading DATETIME_UseFormat.
*
*/
#define DT_END_FORMAT 0
#define ONEDIGITDAY 0x01
#define TWODIGITDAY 0x02
#define THREECHARDAY 0x03
#define FULLDAY 0x04
#define ONEDIGIT12HOUR 0x11
#define TWODIGIT12HOUR 0x12
#define ONEDIGIT24HOUR 0x21
#define TWODIGIT24HOUR 0x22
#define ONEDIGITMINUTE 0x31
#define TWODIGITMINUTE 0x32
#define ONEDIGITMONTH 0x41
#define TWODIGITMONTH 0x42
#define THREECHARMONTH 0x43
#define FULLMONTH 0x44
#define ONEDIGITSECOND 0x51
#define TWODIGITSECOND 0x52
#define ONELETTERAMPM 0x61
#define TWOLETTERAMPM 0x62
#define ONEDIGITYEAR 0x71
#define TWODIGITYEAR 0x72
#define FULLYEAR 0x73
#define FORMATCALLBACK 0x81
/* -> maximum of 0x80 callbacks possible */
#define FORMATCALLMASK 0x80
#define DT_STRING 0x0100
#define DTHT_DATEFIELD 0xff
/* for hit-testing */
#define DTHT_NONE 0
#define DTHT_MCPOPUP 1
#define DTHT_YEAR 2
#define DTHT_DAYNUM 3
#define DTHT_MONTH 4
#define DTHT_DAY 5
#define DTHT_CHECKBOX 6
#define DTHT_GOTFOCUS 128
#define DTHT_CHECKBOX 0x200
/* these should end at '00' , to make */
#define DTHT_MCPOPUP 0x300
/* & DTHT_DATEFIELD 0 when DATETIME_KeyDown */
#define DTHT_GOTFOCUS 0x400
/* tests for date-fields */
#endif
/* __WINE_DATETIME_H */
include/monthcal.h
View file @
e15dff74
...
...
@@ -76,6 +76,7 @@ typedef struct tagMONTHCAL_INFO
extern
void
MONTHCAL_CopyTime
(
const
SYSTEMTIME
*
from
,
SYSTEMTIME
*
to
);
extern
int
MONTHCAL_CalculateDayOfWeek
(
DWORD
day
,
DWORD
month
,
DWORD
year
);
extern
const
int
mdays
[];
extern
const
char
*
const
daytxt
[];
extern
const
char
*
const
monthtxt
[];
extern
void
MONTHCAL_Register
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment