factored out wxGetFullModuleName(HMODULE) from wxGetFullModuleName()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -519,13 +519,13 @@ extern "C"
|
|||||||
|
|
||||||
WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst);
|
WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst);
|
||||||
|
|
||||||
// return the full name of the program file
|
// return the full path of the given module
|
||||||
inline wxString wxGetFullModuleName()
|
inline wxString wxGetFullModuleName(HMODULE hmod)
|
||||||
{
|
{
|
||||||
wxString fullname;
|
wxString fullname;
|
||||||
if ( !::GetModuleFileName
|
if ( !::GetModuleFileName
|
||||||
(
|
(
|
||||||
(HMODULE)wxGetInstance(),
|
hmod,
|
||||||
wxStringBuffer(fullname, MAX_PATH),
|
wxStringBuffer(fullname, MAX_PATH),
|
||||||
MAX_PATH
|
MAX_PATH
|
||||||
) )
|
) )
|
||||||
@@ -536,6 +536,12 @@ inline wxString wxGetFullModuleName()
|
|||||||
return fullname;
|
return fullname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// return the full path of the program file
|
||||||
|
inline wxString wxGetFullModuleName()
|
||||||
|
{
|
||||||
|
return wxGetFullModuleName((HMODULE)wxGetInstance());
|
||||||
|
}
|
||||||
|
|
||||||
#if wxUSE_GUI
|
#if wxUSE_GUI
|
||||||
|
|
||||||
// cursor stuff
|
// cursor stuff
|
||||||
|
Reference in New Issue
Block a user