VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/custcntl.h@ 33282

Last change on this file since 33282 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 3.7 KB
Line 
1/*
2 * Copyright (C) 2002 Gyorgy 'Nog' Jeney
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef _INC_CUSTCNTL
29#define _INC_CUSTCNTL
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35/* Size defs */
36#define CCHCCCLASS 32
37#define CCHCCDESC 32
38#define CCHCCTEXT 256
39
40/* Custom Control Style Structure */
41typedef struct tagCCSYLEA {
42 DWORD flStyle;
43 DWORD flExtStyle;
44 char szText[CCHCCTEXT];
45 LANGID lgid;
46 WORD wReserved1;
47} CCSTYLEA, *LPCCSTYLEA;
48
49typedef struct tagCCSYLEW {
50 DWORD flStyle;
51 DWORD flExtStyle;
52 WCHAR szText[CCHCCTEXT];
53 LANGID lgid;
54 WORD wReserved1;
55} CCSTYLEW, *LPCCSTYLEW;
56
57#define CCSTYLE WINELIB_NAME_AW(CCSTYLE)
58#define LPCCSTYLE WINELIB_NAME_AW(LPCCSTYLE)
59
60typedef BOOL (CALLBACK *LPFNCCSTYLEA)(HWND, LPCCSTYLEA);
61typedef BOOL (CALLBACK *LPFNCCSTYLEW)(HWND, LPCCSTYLEW);
62
63#define LPFNCCSTYLE WINELIB_NAME_AW(LPFNCCSTYLE)
64
65typedef int (CALLBACK *LPFNCCSIZETOTEXTA)(DWORD, DWORD, HFONT, LPSTR);
66typedef int (CALLBACK *LPFNCCSIZETOTEXTW)(DWORD, DWORD, HFONT, LPWSTR);
67
68#define LPFNCCSIZETOTEXT WINELIB_NAME_AW(LPFNCCSIZETOTEXT)
69
70/* Custom Control style flags structure */
71typedef struct tagCCSTYLEFLAGA {
72 DWORD flStyle;
73 DWORD flStyleMask;
74 LPSTR pszStyle;
75} CCSTYLEFLAGA, *LPCCSTYLEFLAGA;
76
77typedef struct tagCCSTYLEFLAGW {
78 DWORD flStyle;
79 DWORD flStyleMask;
80 LPWSTR pszStyle;
81} CCSTYLEFLAGW, *LPCCSTYLEFLAGW;
82
83#define CCSTYLEFLAG WINELIB_NAME_AW(CCSTYLEFLAG)
84
85/* Custom Control Flags */
86#define CCF_NOTEXT 0x00000001
87
88/* CustomControl info structure */
89typedef struct tagCCINFOA {
90 char szClass[CCHCCCLASS];
91 DWORD flOptions;
92 char szDesc[CCHCCDESC];
93 UINT cxDefault;
94 UINT cyDefault;
95 DWORD flStyleDefault;
96 DWORD flExtStyleDefault;
97 DWORD flCtrlTypeMask;
98 char szTextDefault[CCHCCTEXT];
99 int cStyleFlags;
100 LPCCSTYLEFLAGA aStyleFlags;
101 LPFNCCSTYLEA lpfnStyle;
102 LPFNCCSIZETOTEXTA lpfnSizeToText;
103 DWORD dwReserved1;
104 DWORD dwReserved2;
105} CCINFOA, *LPCCINFOA;
106
107typedef struct tagCCINFOW {
108 WCHAR szClass[CCHCCCLASS];
109 DWORD flOptions;
110 WCHAR szDesc[CCHCCDESC];
111 UINT cxDefault;
112 UINT cyDefault;
113 DWORD flStyleDefault;
114 DWORD flExtStyleDefault;
115 DWORD flCtrlTypeMask;
116 int cStyleFlags;
117 LPCCSTYLEFLAGW aStyleFlags;
118 WCHAR szTextDefault[CCHCCTEXT];
119 LPFNCCSTYLEW lpfnStyle;
120 LPFNCCSIZETOTEXTW lpfnSizeToText;
121 DWORD dwReserved1;
122 DWORD dwReserved2;
123} CCINFOW, *LPCCINFOW;
124
125DECL_WINELIB_TYPE_AW(CCINFO)
126DECL_WINELIB_TYPE_AW(LPCCINFO)
127
128typedef UINT (CALLBACK *LPFNCCINFOA)(LPCCINFOA);
129typedef UINT (CALLBACK *LPFNCCINFOW)(LPCCINFOW);
130
131DECL_WINELIB_TYPE_AW(LPFNCCINFO)
132
133#ifdef __cplusplus
134}
135#endif
136
137#endif /* _INC_CUSTCNTL */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette