added function CreateLocalizedDialogParam()

pull/1/head
Heiko Hund 2009-02-05 13:52:27 +00:00
parent 4003e9bf3a
commit ac6c155243
2 changed files with 10 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);