aboutsummaryrefslogtreecommitdiff
path: root/x86_64-w64-mingw32/include/custcntl.h
blob: 2e88b42307f55f7f358067c50fe44bac1b8f3f48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#ifndef _INC_CUSTCNTL
#define _INC_CUSTCNTL

#include <_mingw_unicode.h>

#ifdef __cplusplus
extern "C" {
#endif

#define CCHCCCLASS 32
#define CCHCCDESC 32
#define CCHCCTEXT 256

  typedef struct tagCCSTYLEA {
    DWORD flStyle;
    DWORD flExtStyle;
    CHAR szText[CCHCCTEXT];
    LANGID lgid;
    WORD wReserved1;
  } CCSTYLEA,*LPCCSTYLEA;

  typedef struct tagCCSTYLEW {
    DWORD flStyle;
    DWORD flExtStyle;
    WCHAR szText[CCHCCTEXT];
    LANGID lgid;
    WORD wReserved1;
  } CCSTYLEW,*LPCCSTYLEW;

#define CCSTYLE __MINGW_NAME_AW(CCSTYLE)
#define LPCCSTYLE __MINGW_NAME_AW(LPCCSTYLE)
#define LPFNCCSTYLE __MINGW_NAME_AW(LPFNCCSTYLE)
#define LPFNCCSIZETOTEXT __MINGW_NAME_AW(LPFNCCSIZETOTEXT)
#define CCSTYLEFLAG __MINGW_NAME_AW(CCSTYLEFLAG)
#define LPCCSTYLEFLAG __MINGW_NAME_AW(LPCCSTYLEFLAG)
#define CCINFO __MINGW_NAME_AW(CCINFO)
#define LPCCINFO __MINGW_NAME_AW(LPCCINFO)
#define LPFNCCINFO __MINGW_NAME_AW(LPFNCCINFO)

  typedef WINBOOL (CALLBACK *LPFNCCSTYLEA)(HWND hwndParent,LPCCSTYLEA pccs);
  typedef WINBOOL (CALLBACK *LPFNCCSTYLEW)(HWND hwndParent,LPCCSTYLEW pccs);
  typedef INT (CALLBACK *LPFNCCSIZETOTEXTA)(DWORD flStyle,DWORD flExtStyle,HFONT hfont,LPSTR pszText);
  typedef INT (CALLBACK *LPFNCCSIZETOTEXTW)(DWORD flStyle,DWORD flExtStyle,HFONT hfont,LPWSTR pszText);

  typedef struct tagCCSTYLEFLAGA {
    DWORD flStyle;
    DWORD flStyleMask;
    LPSTR pszStyle;
  } CCSTYLEFLAGA,*LPCCSTYLEFLAGA;

  typedef struct tagCCSTYLEFLAGW {
    DWORD flStyle;
    DWORD flStyleMask;
    LPWSTR pszStyle;
  } CCSTYLEFLAGW,*LPCCSTYLEFLAGW;

#define CCF_NOTEXT 0x00000001

  typedef struct tagCCINFOA {
    CHAR szClass[CCHCCCLASS];
    DWORD flOptions;
    CHAR szDesc[CCHCCDESC];
    UINT cxDefault;
    UINT cyDefault;
    DWORD flStyleDefault;
    DWORD flExtStyleDefault;
    DWORD flCtrlTypeMask;
    CHAR szTextDefault[CCHCCTEXT];
    INT cStyleFlags;
    LPCCSTYLEFLAGA aStyleFlags;
    LPFNCCSTYLEA lpfnStyle;
    LPFNCCSIZETOTEXTA lpfnSizeToText;
    DWORD dwReserved1;
    DWORD dwReserved2;
  } CCINFOA,*LPCCINFOA;

  typedef struct tagCCINFOW {
    WCHAR szClass[CCHCCCLASS];
    DWORD flOptions;
    WCHAR szDesc[CCHCCDESC];
    UINT cxDefault;
    UINT cyDefault;
    DWORD flStyleDefault;
    DWORD flExtStyleDefault;
    DWORD flCtrlTypeMask;
    INT cStyleFlags;
    LPCCSTYLEFLAGW aStyleFlags;
    WCHAR szTextDefault[CCHCCTEXT];
    LPFNCCSTYLEW lpfnStyle;
    LPFNCCSIZETOTEXTW lpfnSizeToText;
    DWORD dwReserved1;
    DWORD dwReserved2;
  } CCINFOW,*LPCCINFOW;

  typedef UINT (CALLBACK *LPFNCCINFOA)(LPCCINFOA acci);
  typedef UINT (CALLBACK *LPFNCCINFOW)(LPCCINFOW acci);

#ifdef __cplusplus
}
#endif
#endif