mirror of https://github.com/OpenVPN/openvpn-gui
added function CreateLocalizedDialogParam()
parent
4003e9bf3a
commit
ac6c155243
|
@ -248,7 +248,7 @@ LocalizedDialogBox(const UINT dialogId, DLGPROC dialogFunc)
|
|||
|
||||
|
||||
HWND
|
||||
CreateLocalizedDialog(const UINT dialogId, DLGPROC dialogFunc)
|
||||
CreateLocalizedDialogParam(const UINT dialogId, DLGPROC dialogFunc, const LPARAM param)
|
||||
{
|
||||
/* find dialog resource */
|
||||
HRSRC res = FindResourceLang(RT_DIALOG, MAKEINTRESOURCE(dialogId), GetGUILanguage());
|
||||
|
@ -259,7 +259,14 @@ CreateLocalizedDialog(const UINT dialogId, DLGPROC dialogFunc)
|
|||
if (resInfo == NULL)
|
||||
return NULL;
|
||||
|
||||
return CreateDialogIndirect(o.hInstance, resInfo, NULL, dialogFunc);
|
||||
return CreateDialogIndirectParam(o.hInstance, resInfo, NULL, dialogFunc, param);
|
||||
}
|
||||
|
||||
|
||||
HWND
|
||||
CreateLocalizedDialog(const UINT dialogId, DLGPROC dialogFunc)
|
||||
{
|
||||
return CreateLocalizedDialogParam(dialogId, dialogFunc, 0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ HICON LoadLocalizedIcon(const UINT);
|
|||
LPCDLGTEMPLATE LocalizedDialogResource(const UINT);
|
||||
INT_PTR LocalizedDialogBoxParam(const UINT, DLGPROC, const LPARAM);
|
||||
INT_PTR LocalizedDialogBox(const UINT, DLGPROC);
|
||||
HWND CreateLocalizedDialogParam(const UINT, DLGPROC, const LPARAM);
|
||||
HWND CreateLocalizedDialog(const UINT, DLGPROC);
|
||||
BOOL CALLBACK LanguageSettingsDlgProc(HWND, UINT, WPARAM, LPARAM);
|
||||
|
||||
|
|
Loading…
Reference in New Issue