comparison fuhtark_test/include/winapi/custcntl.h @ 1500:91c8c3b7cbf0

add: futhark tests for generating vulkan api
author sam <sam@basx.dev>
date Wed, 26 Nov 2025 21:36:48 +0700
parents
children
comparison
equal deleted inserted replaced
1499:1f58458b7ef7 1500:91c8c3b7cbf0
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _INC_CUSTCNTL
7 #define _INC_CUSTCNTL
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #define CCHCCCLASS 32
14 #define CCHCCDESC 32
15 #define CCHCCTEXT 256
16
17 typedef struct tagCCSTYLEA {
18 DWORD flStyle;
19 DWORD flExtStyle;
20 CHAR szText[CCHCCTEXT];
21 LANGID lgid;
22 WORD wReserved1;
23 } CCSTYLEA,*LPCCSTYLEA;
24
25 typedef struct tagCCSTYLEW {
26 DWORD flStyle;
27 DWORD flExtStyle;
28 WCHAR szText[CCHCCTEXT];
29 LANGID lgid;
30 WORD wReserved1;
31 } CCSTYLEW,*LPCCSTYLEW;
32
33 #ifdef UNICODE
34 #define CCSTYLE CCSTYLEW
35 #define LPCCSTYLE LPCCSTYLEW
36 #define LPFNCCSTYLE LPFNCCSTYLEW
37 #define LPFNCCSIZETOTEXT LPFNCCSIZETOTEXTW
38 #define CCSTYLEFLAG CCSTYLEFLAGW
39 #define LPCCSTYLEFLAG LPCCSTYLEFLAGW
40 #define CCINFO CCINFOW
41 #define LPCCINFO LPCCINFOW
42 #define LPFNCCINFO LPFNCCINFOW
43 #else
44 #define CCSTYLE CCSTYLEA
45 #define LPCCSTYLE LPCCSTYLEA
46 #define LPFNCCSTYLE LPFNCCSTYLEA
47 #define LPFNCCSIZETOTEXT LPFNCCSIZETOTEXTA
48 #define CCSTYLEFLAG CCSTYLEFLAGA
49 #define LPCCSTYLEFLAG LPCCSTYLEFLAGA
50 #define CCINFO CCINFOA
51 #define LPCCINFO LPCCINFOA
52 #define LPFNCCINFO LPFNCCINFOA
53 #endif
54
55 typedef WINBOOL (CALLBACK *LPFNCCSTYLEA)(HWND hwndParent,LPCCSTYLEA pccs);
56 typedef WINBOOL (CALLBACK *LPFNCCSTYLEW)(HWND hwndParent,LPCCSTYLEW pccs);
57 typedef INT (CALLBACK *LPFNCCSIZETOTEXTA)(DWORD flStyle,DWORD flExtStyle,HFONT hfont,LPSTR pszText);
58 typedef INT (CALLBACK *LPFNCCSIZETOTEXTW)(DWORD flStyle,DWORD flExtStyle,HFONT hfont,LPWSTR pszText);
59
60 typedef struct tagCCSTYLEFLAGA {
61 DWORD flStyle;
62 DWORD flStyleMask;
63 LPSTR pszStyle;
64 } CCSTYLEFLAGA,*LPCCSTYLEFLAGA;
65
66 typedef struct tagCCSTYLEFLAGW {
67 DWORD flStyle;
68 DWORD flStyleMask;
69 LPWSTR pszStyle;
70 } CCSTYLEFLAGW,*LPCCSTYLEFLAGW;
71
72 #define CCF_NOTEXT 0x00000001
73
74 typedef struct tagCCINFOA {
75 CHAR szClass[CCHCCCLASS];
76 DWORD flOptions;
77 CHAR szDesc[CCHCCDESC];
78 UINT cxDefault;
79 UINT cyDefault;
80 DWORD flStyleDefault;
81 DWORD flExtStyleDefault;
82 DWORD flCtrlTypeMask;
83 CHAR szTextDefault[CCHCCTEXT];
84 INT cStyleFlags;
85 LPCCSTYLEFLAGA aStyleFlags;
86 LPFNCCSTYLEA lpfnStyle;
87 LPFNCCSIZETOTEXTA lpfnSizeToText;
88 DWORD dwReserved1;
89 DWORD dwReserved2;
90 } CCINFOA,*LPCCINFOA;
91
92 typedef struct tagCCINFOW {
93 WCHAR szClass[CCHCCCLASS];
94 DWORD flOptions;
95 WCHAR szDesc[CCHCCDESC];
96 UINT cxDefault;
97 UINT cyDefault;
98 DWORD flStyleDefault;
99 DWORD flExtStyleDefault;
100 DWORD flCtrlTypeMask;
101 INT cStyleFlags;
102 LPCCSTYLEFLAGW aStyleFlags;
103 WCHAR szTextDefault[CCHCCTEXT];
104 LPFNCCSTYLEW lpfnStyle;
105 LPFNCCSIZETOTEXTW lpfnSizeToText;
106 DWORD dwReserved1;
107 DWORD dwReserved2;
108 } CCINFOW,*LPCCINFOW;
109
110 typedef UINT (CALLBACK *LPFNCCINFOA)(LPCCINFOA acci);
111 typedef UINT (CALLBACK *LPFNCCINFOW)(LPCCINFOW acci);
112
113 #ifdef __cplusplus
114 }
115 #endif
116 #endif