mirror of https://github.com/OpenVPN/openvpn-gui
Parent status and message box windows in the GUI
- Proper parenting is required for PLAP and cannot hurt in general. The parent window in GUI mode is the main window. In PLAP it will be the handle obtained from LogonUI. Signed-off-by: Selva Nair <selva.nair@gmail.com>pull/529/head
parent
89e46df455
commit
4acafcf355
|
@ -365,7 +365,7 @@ LocalizedDialogBoxParam(const UINT dialogId, DLGPROC dialogFunc, const LPARAM pa
|
|||
if (resInfo == NULL)
|
||||
return -1;
|
||||
|
||||
return DialogBoxIndirectParam(o.hInstance, resInfo, NULL, dialogFunc, param);
|
||||
return DialogBoxIndirectParam(o.hInstance, resInfo, o.hWnd, dialogFunc, param);
|
||||
}
|
||||
|
||||
|
||||
|
@ -381,7 +381,7 @@ CreateLocalizedDialogParam(const UINT dialogId, DLGPROC dialogFunc, const LPARAM
|
|||
if (resInfo == NULL)
|
||||
return NULL;
|
||||
|
||||
return CreateDialogIndirectParam(o.hInstance, resInfo, NULL, dialogFunc, param);
|
||||
return CreateDialogIndirectParam(o.hInstance, resInfo, o.hWnd, dialogFunc, param);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue