mCtrl
dialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 Martin Mitas
3  *
4  * This library is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 2.1 of the License, or
7  * (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
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef MCTRL_DIALOG_H
20 #define MCTRL_DIALOG_H
21 
22 #include <mCtrl/defs.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
73 #define MC_DF_DEFAULTFONT 0x00000001
74 
87 HWND MCTRL_API mcCreateDialogParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName,
88  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
89  DWORD dwFlags);
90 
101 HWND MCTRL_API mcCreateDialogParamA(HINSTANCE hInstance, LPCSTR lpTemplateName,
102  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
103  DWORD dwFlags);
104 
114 #define mcCreateDialogW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
115  mcCreateDialogParamW((hInstance),(lpTemplateName),(hWndParent), \
116  (lpDialogFunc),0L,(dwFlags))
117 
127 #define mcCreateDialogA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
128  mcCreateDialogParamA((hInstance),(lpTemplateName),(hWndParent), \
129  (lpDialogFunc),0L,(dwFlags))
130 
141 HWND MCTRL_API mcCreateDialogIndirectParamW(HINSTANCE hInstance,
142  LPCDLGTEMPLATEW lpTemplate, HWND hWndParent,
143  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
144 
155 HWND MCTRL_API mcCreateDialogIndirectParamA(HINSTANCE hInstance,
156  LPCDLGTEMPLATEA lpTemplate, HWND hWndParent,
157  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
158 
168 #define mcCreateDialogIndirectW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
169  mcCreateDialogIndirectParamW((hInstance),(lpTemplate),(hWndParent), \
170  (lpDialogFunc),0L,(dwFlags))
171 
181 #define mcCreateDialogIndirectA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
182  mcCreateDialogIndirectParamA((hInstance),(lpTemplate),(hWndParent), \
183  (lpDialogFunc),0L,(dwFlags))
184 
185 
197 INT_PTR MCTRL_API mcDialogBoxParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName,
198  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
199  DWORD dwFlags);
200 
212 INT_PTR MCTRL_API mcDialogBoxParamA(HINSTANCE hInstance, LPCSTR lpTemplateName,
213  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
214  DWORD dwFlags);
215 
226 #define mcDialogBoxW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
227  mcDialogBoxParamW((hInstance),(lpTemplateName),(hWndParent), \
228  (lpDialogFunc),0L,(dwFlags))
229 
240 #define mcDialogBoxA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
241  mcDialogBoxParamA((hInstance),(lpTemplateName),(hWndParent), \
242  (lpDialogFunc),0L,(dwFlags))
243 
244 
256 INT_PTR MCTRL_API mcDialogBoxIndirectParamW(HINSTANCE hInstance,
257  LPCDLGTEMPLATEW lpTemplate, HWND hWndParent,
258  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
259 
271 INT_PTR MCTRL_API mcDialogBoxIndirectParamA(HINSTANCE hInstance,
272  LPCDLGTEMPLATEA lpTemplate, HWND hWndParent,
273  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
274 
285 #define mcDialogBoxIndirectW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
286  mcDialogBoxIndirectParamW((hInstance),(lpTemplate),(hWndParent), \
287  (lpDialogFunc),0L,(lpDialogFunc))
288 
299 #define mcDialogBoxIndirectA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
300  mcDialogBoxIndirectParamA((hInstance),(lpTemplate),(hWndParent), \
301  (lpDialogFunc),0L,(lpDialogFunc))
302 
303 
308 
310 #define mcCreateDialogParam MCTRL_NAME_AW(mcCreateDialogParam)
311 
312 #define mcCreateDialog MCTRL_NAME_AW(mcCreateDialog)
313 
314 #define mcCreateDialogIndirectParam MCTRL_NAME_AW(mcCreateDialogIndirectParam)
315 
316 #define mcCreateDialogIndirect MCTRL_NAME_AW(mcCreateDialogIndirect)
317 
318 #define mcDialogBoxParam MCTRL_NAME_AW(mcDialogBoxParam)
319 
320 #define mcDialogBox MCTRL_NAME_AW(mcDialogBox)
321 
322 #define mcDialogBoxIndirectParam MCTRL_NAME_AW(mcDialogBoxIndirectParam)
323 
324 #define mcDialogBoxIndirect MCTRL_NAME_AW(mcDialogBoxIndirect)
325 
329 #ifdef __cplusplus
330 } /* extern "C" */
331 #endif
332 
333 #endif /* MCTRL_DIALOG_H */