Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / widget / src / windows / nsUXThemeConstants.h
blob61b7e9858f7337cafa75fbb55acf24513937ac09
1 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 * ***** BEGIN LICENSE BLOCK *****
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
7 * The contents of this file are subject to the Mozilla Public License Version
8 * 1.1 (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
10 * http://www.mozilla.org/MPL/
12 * Software distributed under the License is distributed on an "AS IS" basis,
13 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14 * for the specific language governing rights and limitations under the
15 * License.
17 * The Original Code is the Mozilla browser.
19 * The Initial Developer of the Original Code is
20 * Netscape Communications Corporation.
21 * Portions created by the Initial Developer are Copyright (C) 1999
22 * the Initial Developer. All Rights Reserved.
24 * Contributor(s):
25 * Rob Arnold <robarnold@mozilla.com> (Original Author)
27 * Alternatively, the contents of this file may be used under the terms of
28 * either of the GNU General Public License Version 2 or later (the "GPL"),
29 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30 * in which case the provisions of the GPL or the LGPL are applicable instead
31 * of those above. If you wish to allow use of your version of this file only
32 * under the terms of either the GPL or the LGPL, and not to allow others to
33 * use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL or the LGPL.
39 * ***** END LICENSE BLOCK ***** */
41 /*
42 * The following constants are used to determine how a widget is drawn using
43 * Windows' Theme API. For more information on theme parts and states see
44 * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/topics/partsandstates.asp
46 #define THEME_COLOR 204
47 #define THEME_FONT 210
49 // Generic state constants
50 #define TS_NORMAL 1
51 #define TS_HOVER 2
52 #define TS_ACTIVE 3
53 #define TS_DISABLED 4
54 #define TS_FOCUSED 5
56 // These constants are reversed for the trackbar (scale) thumb
57 #define TKP_FOCUSED 4
58 #define TKP_DISABLED 5
60 // Toolbar constants
61 #define TP_BUTTON 1
62 #define TP_SEPARATOR 5
64 // Toolbarbutton constants
65 #define TB_CHECKED 5
66 #define TB_HOVER_CHECKED 6
68 // Button constants
69 #define BP_BUTTON 1
70 #define BP_RADIO 2
71 #define BP_CHECKBOX 3
73 // Textfield constants
74 /* This is the EP_EDITTEXT part */
75 #define TFP_TEXTFIELD 1
76 #define TFP_EDITBORDER_NOSCROLL 6
77 #define TFS_READONLY 6
79 /* These are the state constants for the EDITBORDER parts */
80 #define TFS_EDITBORDER_NORMAL 1
81 #define TFS_EDITBORDER_HOVER 2
82 #define TFS_EDITBORDER_FOCUSED 3
83 #define TFS_EDITBORDER_DISABLED 4
85 // Treeview/listbox constants
86 #define TREEVIEW_BODY 1
88 // Scrollbar constants
89 #define SP_BUTTON 1
90 #define SP_THUMBHOR 2
91 #define SP_THUMBVERT 3
92 #define SP_TRACKSTARTHOR 4
93 #define SP_TRACKENDHOR 5
94 #define SP_TRACKSTARTVERT 6
95 #define SP_TRACKENDVERT 7
96 #define SP_GRIPPERHOR 8
97 #define SP_GRIPPERVERT 9
99 // Vista only; implict hover state.
100 // BASE + 0 = UP, + 1 = DOWN, etc.
101 #define SP_BUTTON_IMPLICIT_HOVER_BASE 17
103 // Scale constants
104 #define TKP_TRACK 1
105 #define TKP_TRACKVERT 2
106 #define TKP_THUMB 3
107 #define TKP_THUMBVERT 6
109 // Spin constants
110 #define SPNP_UP 1
111 #define SPNP_DOWN 2
113 // Progress bar constants
114 #define PP_BAR 1
115 #define PP_BARVERT 2
116 #define PP_CHUNK 3
117 #define PP_CHUNKVERT 4
119 // Tab constants
120 #define TABP_TAB 4
121 #define TABP_TAB_SELECTED 5
122 #define TABP_PANELS 9
123 #define TABP_PANEL 10
125 // Tooltip constants
126 #define TTP_STANDARD 1
128 // Dropdown constants
129 #define CBP_DROPMARKER 1
130 #define CBP_DROPBORDER 4
131 /* This is actually the 'READONLY' style */
132 #define CBP_DROPFRAME 5
133 #define CBP_DROPMARKER_VISTA 6
135 // Menu Constants
136 #define MENU_BARBACKGROUND 7
137 #define MENU_BARITEM 8
138 #define MENU_POPUPBACKGROUND 9
139 #define MENU_POPUPBORDERS 10
140 #define MENU_POPUPCHECK 11
141 #define MENU_POPUPCHECKBACKGROUND 12
142 #define MENU_POPUPGUTTER 13
143 #define MENU_POPUPITEM 14
144 #define MENU_POPUPSEPARATOR 15
145 #define MENU_POPUPSUBMENU 16
146 #define MENU_SYSTEMCLOSE 17
147 #define MENU_SYSTEMMAXIMIZE 18
148 #define MENU_SYSTEMMINIMIZE 19
149 #define MENU_SYSTEMRESTORE 20
151 #define MB_ACTIVE 1
152 #define MB_INACTIVE 2
154 #define MS_NORMAL 1
155 #define MS_SELECTED 2
156 #define MS_DEMOTED 3
158 #define MBI_NORMAL 1
159 #define MBI_HOT 2
160 #define MBI_PUSHED 3
161 #define MBI_DISABLED 4
162 #define MBI_DISABLEDHOT 5
163 #define MBI_DISABLEDPUSHED 6
165 #define MC_CHECKMARKNORMAL 1
166 #define MC_CHECKMARKDISABLED 2
167 #define MC_BULLETNORMAL 3
168 #define MC_BULLETDISABLED 4
170 #define MCB_DISABLED 1
171 #define MCB_NORMAL 2
172 #define MCB_BITMAP 3
174 #define MPI_NORMAL 1
175 #define MPI_HOT 2
176 #define MPI_DISABLED 3
177 #define MPI_DISABLEDHOT 4
179 #define MSM_NORMAL 1
180 #define MSM_DISABLED 2
182 // Theme size constants
183 // minimum size
184 #define TS_MIN 0
185 // size without stretching
186 #define TS_TRUE 1
187 // size that theme mgr will use to draw part
188 #define TS_DRAW 2
190 // From tmschema.h in the Vista SDK
191 #define TMT_TEXTCOLOR 3803
192 #define TMT_SIZINGMARGINS 3601
193 #define TMT_CONTENTMARGINS 3602
194 #define TMT_CAPTIONMARGINS 3603
196 // Rebar constants
197 #define RP_BAND 3
198 #define RP_BACKGROUND 6
200 // Constants only found in new (98+, 2K+, XP+, etc.) Windows.
201 #ifdef DFCS_HOT
202 #undef DFCS_HOT
203 #endif
204 #define DFCS_HOT 0x00001000
206 #ifdef COLOR_MENUHILIGHT
207 #undef COLOR_MENUHILIGHT
208 #endif
209 #define COLOR_MENUHILIGHT 29
211 #ifdef SPI_GETFLATMENU
212 #undef SPI_GETFLATMENU
213 #endif
214 #define SPI_GETFLATMENU 0x1022
215 #ifndef SPI_GETMENUSHOWDELAY
216 #define SPI_GETMENUSHOWDELAY 106
217 #endif //SPI_GETMENUSHOWDELAY
218 #ifndef WS_EX_LAYOUTRTL
219 #define WS_EX_LAYOUTRTL 0x00400000L // Right to left mirroring
220 #endif
223 // Our extra constants for passing a little bit more info to the renderer.
224 #define DFCS_RTL 0x00010000
226 // Toolbar separator dimension which can't be gotten from Windows
227 #define TB_SEPARATOR_HEIGHT 2