source: Daodan/MinGW/include/custcntl.h@ 1163

Last change on this file since 1163 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 2.5 KB
Line 
1#ifndef _CUSTCNTL_H
2#define _CUSTCNTL_H
3#if __GNUC__ >=3
4#pragma GCC system_header
5#endif
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#define CCF_NOTEXT 1
12#define CCHCCCLASS 32
13#define CCHCCDESC 32
14#define CCHCCTEXT 256
15
16typedef struct tagCCSTYLEA {
17 DWORD flStyle;
18 DWORD flExtStyle;
19 CHAR szText[CCHCCTEXT];
20 LANGID lgid;
21 WORD wReserved1;
22} CCSTYLEA,*LPCCSTYLEA;
23typedef struct tagCCSTYLEW {
24 DWORD flStyle;
25 DWORD flExtStyle;
26 WCHAR szText[CCHCCTEXT];
27 LANGID lgid;
28 WORD wReserved1;
29} CCSTYLEW,*LPCCSTYLEW;
30typedef struct tagCCSTYLEFLAGA {
31 DWORD flStyle;
32 DWORD flStyleMask;
33 LPSTR pszStyle;
34} CCSTYLEFLAGA,*LPCCSTYLEFLAGA;
35typedef struct tagCCSTYLEFLAGW {
36 DWORD flStyle;
37 DWORD flStyleMask;
38 LPWSTR pszStyle;
39} CCSTYLEFLAGW,*LPCCSTYLEFLAGW;
40typedef BOOL(CALLBACK* LPFNCCSTYLEA)(HWND,LPCCSTYLEA);
41typedef INT(CALLBACK* LPFNCCSIZETOTEXTA)(DWORD,DWORD,HFONT,LPSTR);
42typedef struct tagCCINFOA {
43 CHAR szClass[CCHCCCLASS];
44 DWORD flOptions;
45 CHAR szDesc[CCHCCDESC];
46 UINT cxDefault;
47 UINT cyDefault;
48 DWORD flStyleDefault;
49 DWORD flExtStyleDefault;
50 DWORD flCtrlTypeMask;
51 CHAR szTextDefault[CCHCCTEXT];
52 INT cStyleFlags;
53 LPCCSTYLEFLAGA aStyleFlags;
54 LPFNCCSTYLEA lpfnStyle;
55 LPFNCCSIZETOTEXTA lpfnSizeToText;
56 DWORD dwReserved1;
57 DWORD dwReserved2;
58} CCINFOA,*LPCCINFOA;
59typedef UINT(CALLBACK* LPFNCCINFOA)(LPCCINFOA);
60typedef BOOL(CALLBACK* LPFNCCSTYLEW)(HWND,LPCCSTYLEW);
61typedef INT (CALLBACK* LPFNCCSIZETOTEXTW)(DWORD,DWORD,HFONT,LPWSTR);
62typedef struct tagCCINFOW {
63 WCHAR szClass[CCHCCCLASS];
64 DWORD flOptions;
65 WCHAR szDesc[CCHCCDESC];
66 UINT cxDefault;
67 UINT cyDefault;
68 DWORD flStyleDefault;
69 DWORD flExtStyleDefault;
70 DWORD flCtrlTypeMask;
71 WCHAR szTextDefault[CCHCCTEXT];
72 INT cStyleFlags;
73 LPCCSTYLEFLAGW aStyleFlags;
74 LPFNCCSTYLEW lpfnStyle;
75 LPFNCCSIZETOTEXTW lpfnSizeToText;
76 DWORD dwReserved1;
77 DWORD dwReserved2;
78} CCINFOW,*LPCCINFOW;
79typedef UINT(CALLBACK* LPFNCCINFOW)(LPCCINFOW);
80
81UINT CALLBACK CustomControlInfoA(LPCCINFOA acci);
82UINT CALLBACK CustomControlInfoW(LPCCINFOW acci);
83
84#ifdef UNICODE
85typedef CCSTYLEW CCSTYLE,*LPCCSTYLE;
86typedef CCSTYLEFLAGW CCSTYLEFLAG,*LPCCSTYLEFLAG;
87typedef CCINFOW CCINFO,*LPCCINFO;
88#define LPFNCCSTYLE LPFNCCSTYLEW
89#define LPFNCCSIZETOTEXT LPFNCCSIZETOTEXTW
90#define LPFNCCINFO LPFNCCINFOW
91#else
92typedef CCSTYLEA CCSTYLE,*LPCCSTYLE;
93typedef CCSTYLEFLAGA CCSTYLEFLAG,*LPCCSTYLEFLAG;
94typedef CCINFOA CCINFO,*LPCCINFO;
95#define LPFNCCSTYLE LPFNCCSTYLEA
96#define LPFNCCSIZETOTEXT LPFNCCSIZETOTEXTA
97#define LPFNCCINFO LPFNCCINFOA
98#endif
99#ifdef __cplusplus
100}
101#endif
102#endif
Note: See TracBrowser for help on using the repository browser.