mCtrl  0.9.2
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 
55 
73 #define MC_DF_DEFAULTFONT 0x00000001
74 
82 
93 HWND MCTRL_API mcCreateDialogParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName,
94  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
95  DWORD dwFlags);
96 
107 HWND MCTRL_API mcCreateDialogParamA(HINSTANCE hInstance, LPCSTR lpTemplateName,
108  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
109  DWORD dwFlags);
110 
120 #define mcCreateDialogW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
121  mcCreateDialogParamW((hInstance),(lpTemplateName),(hWndParent), \
122  (lpDialogFunc),0L,(dwFlags))
123 
133 #define mcCreateDialogA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
134  mcCreateDialogParamA((hInstance),(lpTemplateName),(hWndParent), \
135  (lpDialogFunc),0L,(dwFlags))
136 
147 HWND MCTRL_API mcCreateDialogIndirectParamW(HINSTANCE hInstance,
148  LPCDLGTEMPLATEW lpTemplate, HWND hWndParent,
149  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
150 
161 HWND MCTRL_API mcCreateDialogIndirectParamA(HINSTANCE hInstance,
162  LPCDLGTEMPLATEA lpTemplate, HWND hWndParent,
163  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
164 
174 #define mcCreateDialogIndirectW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
175  mcCreateDialogIndirectParamW((hInstance),(lpTemplate),(hWndParent), \
176  (lpDialogFunc),0L,(dwFlags))
177 
187 #define mcCreateDialogIndirectA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
188  mcCreateDialogIndirectParamA((hInstance),(lpTemplate),(hWndParent), \
189  (lpDialogFunc),0L,(dwFlags))
190 
198 
210 INT_PTR MCTRL_API mcDialogBoxParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName,
211  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
212  DWORD dwFlags);
213 
225 INT_PTR MCTRL_API mcDialogBoxParamA(HINSTANCE hInstance, LPCSTR lpTemplateName,
226  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
227  DWORD dwFlags);
228 
239 #define mcDialogBoxW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
240  mcDialogBoxParamW((hInstance),(lpTemplateName),(hWndParent), \
241  (lpDialogFunc),0L,(dwFlags))
242 
253 #define mcDialogBoxA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
254  mcDialogBoxParamA((hInstance),(lpTemplateName),(hWndParent), \
255  (lpDialogFunc),0L,(dwFlags))
256 
257 
269 INT_PTR MCTRL_API mcDialogBoxIndirectParamW(HINSTANCE hInstance,
270  LPCDLGTEMPLATEW lpTemplate, HWND hWndParent,
271  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
272 
284 INT_PTR MCTRL_API mcDialogBoxIndirectParamA(HINSTANCE hInstance,
285  LPCDLGTEMPLATEA lpTemplate, HWND hWndParent,
286  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
287 
298 #define mcDialogBoxIndirectW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
299  mcDialogBoxIndirectParamW((hInstance),(lpTemplate),(hWndParent), \
300  (lpDialogFunc),0L,(lpDialogFunc))
301 
312 #define mcDialogBoxIndirectA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
313  mcDialogBoxIndirectParamA((hInstance),(lpTemplate),(hWndParent), \
314  (lpDialogFunc),0L,(lpDialogFunc))
315 
323 
325 #define mcCreateDialogParam MCTRL_NAME_AW(mcCreateDialogParam)
326 
327 #define mcCreateDialog MCTRL_NAME_AW(mcCreateDialog)
328 
329 #define mcCreateDialogIndirectParam MCTRL_NAME_AW(mcCreateDialogIndirectParam)
330 
331 #define mcCreateDialogIndirect MCTRL_NAME_AW(mcCreateDialogIndirect)
332 
333 #define mcDialogBoxParam MCTRL_NAME_AW(mcDialogBoxParam)
334 
335 #define mcDialogBox MCTRL_NAME_AW(mcDialogBox)
336 
337 #define mcDialogBoxIndirectParam MCTRL_NAME_AW(mcDialogBoxIndirectParam)
338 
339 #define mcDialogBoxIndirect MCTRL_NAME_AW(mcDialogBoxIndirect)
340 
344 #ifdef __cplusplus
345 } /* extern "C" */
346 #endif
347 
348 #endif /* MCTRL_DIALOG_H */