mCtrl  0.10.0
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 #include <mCtrl/_common.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
56 
74 #define MC_DF_DEFAULTFONT 0x00000001
75 
83 
94 HWND MCTRL_API mcCreateDialogParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName,
95  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
96  DWORD dwFlags);
97 
108 HWND MCTRL_API mcCreateDialogParamA(HINSTANCE hInstance, LPCSTR lpTemplateName,
109  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
110  DWORD dwFlags);
111 
121 #define mcCreateDialogW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
122  mcCreateDialogParamW((hInstance),(lpTemplateName),(hWndParent), \
123  (lpDialogFunc),0L,(dwFlags))
124 
134 #define mcCreateDialogA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
135  mcCreateDialogParamA((hInstance),(lpTemplateName),(hWndParent), \
136  (lpDialogFunc),0L,(dwFlags))
137 
148 HWND MCTRL_API mcCreateDialogIndirectParamW(HINSTANCE hInstance,
149  LPCDLGTEMPLATEW lpTemplate, HWND hWndParent,
150  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
151 
162 HWND MCTRL_API mcCreateDialogIndirectParamA(HINSTANCE hInstance,
163  LPCDLGTEMPLATEA lpTemplate, HWND hWndParent,
164  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
165 
175 #define mcCreateDialogIndirectW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
176  mcCreateDialogIndirectParamW((hInstance),(lpTemplate),(hWndParent), \
177  (lpDialogFunc),0L,(dwFlags))
178 
188 #define mcCreateDialogIndirectA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
189  mcCreateDialogIndirectParamA((hInstance),(lpTemplate),(hWndParent), \
190  (lpDialogFunc),0L,(dwFlags))
191 
199 
211 INT_PTR MCTRL_API mcDialogBoxParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName,
212  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
213  DWORD dwFlags);
214 
226 INT_PTR MCTRL_API mcDialogBoxParamA(HINSTANCE hInstance, LPCSTR lpTemplateName,
227  HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit,
228  DWORD dwFlags);
229 
240 #define mcDialogBoxW(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
241  mcDialogBoxParamW((hInstance),(lpTemplateName),(hWndParent), \
242  (lpDialogFunc),0L,(dwFlags))
243 
254 #define mcDialogBoxA(hInstance,lpTemplateName,hWndParent,lpDialogFunc,dwFlags) \
255  mcDialogBoxParamA((hInstance),(lpTemplateName),(hWndParent), \
256  (lpDialogFunc),0L,(dwFlags))
257 
258 
270 INT_PTR MCTRL_API mcDialogBoxIndirectParamW(HINSTANCE hInstance,
271  LPCDLGTEMPLATEW lpTemplate, HWND hWndParent,
272  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
273 
285 INT_PTR MCTRL_API mcDialogBoxIndirectParamA(HINSTANCE hInstance,
286  LPCDLGTEMPLATEA lpTemplate, HWND hWndParent,
287  DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags);
288 
299 #define mcDialogBoxIndirectW(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
300  mcDialogBoxIndirectParamW((hInstance),(lpTemplate),(hWndParent), \
301  (lpDialogFunc),0L,(lpDialogFunc))
302 
313 #define mcDialogBoxIndirectA(hInstance,lpTemplate,hWndParent,lpDialogFunc,dwFlags) \
314  mcDialogBoxIndirectParamA((hInstance),(lpTemplate),(hWndParent), \
315  (lpDialogFunc),0L,(lpDialogFunc))
316 
324 
326 #define mcCreateDialogParam MCTRL_NAME_AW(mcCreateDialogParam)
327 
328 #define mcCreateDialog MCTRL_NAME_AW(mcCreateDialog)
329 
330 #define mcCreateDialogIndirectParam MCTRL_NAME_AW(mcCreateDialogIndirectParam)
331 
332 #define mcCreateDialogIndirect MCTRL_NAME_AW(mcCreateDialogIndirect)
333 
334 #define mcDialogBoxParam MCTRL_NAME_AW(mcDialogBoxParam)
335 
336 #define mcDialogBox MCTRL_NAME_AW(mcDialogBox)
337 
338 #define mcDialogBoxIndirectParam MCTRL_NAME_AW(mcDialogBoxIndirectParam)
339 
340 #define mcDialogBoxIndirect MCTRL_NAME_AW(mcDialogBoxIndirect)
341 
345 #ifdef __cplusplus
346 } /* extern "C" */
347 #endif
348 
349 #endif /* MCTRL_DIALOG_H */
#define MCTRL_API
Definition: _defs.h:46
INT_PTR mcDialogBoxIndirectParamW(HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
INT_PTR mcDialogBoxParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
HWND mcCreateDialogParamA(HINSTANCE hInstance, LPCSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
HWND mcCreateDialogIndirectParamA(HINSTANCE hInstance, LPCDLGTEMPLATEA lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
INT_PTR mcDialogBoxParamA(HINSTANCE hInstance, LPCSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
INT_PTR mcDialogBoxIndirectParamA(HINSTANCE hInstance, LPCDLGTEMPLATEA lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
HWND mcCreateDialogIndirectParamW(HINSTANCE hInstance, LPCDLGTEMPLATEW lpTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
HWND mcCreateDialogParamW(HINSTANCE hInstance, LPCWSTR lpTemplateName, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM lParamInit, DWORD dwFlags)
Common definitions.
Common constants and types.