// private constants
// ---------------------------------------------------------------------------
-// Conversion
-static const double METRIC_CONVERSION_CONSTANT = 0.0393700787;
-
-// Scaling factors for various unit conversions
-static const double mm2inches = (METRIC_CONVERSION_CONSTANT);
-static const double inches2mm = (1/METRIC_CONVERSION_CONSTANT);
-
-static const double mm2twips = (METRIC_CONVERSION_CONSTANT*1440);
-static const double twips2mm = (1/(METRIC_CONVERSION_CONSTANT*1440));
-
-static const double mm2pt = (METRIC_CONVERSION_CONSTANT*72);
-static const double pt2mm = (1/(METRIC_CONVERSION_CONSTANT*72));
-
// 260 was taken from windef.h
#ifndef MAX_PATH
#define MAX_PATH 260
WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst);
-// return the full name of the program file
-inline wxString wxGetFullModuleName()
+// return the full path of the given module
+inline wxString wxGetFullModuleName(HMODULE hmod)
{
wxString fullname;
if ( !::GetModuleFileName
(
- (HMODULE)wxGetInstance(),
+ hmod,
wxStringBuffer(fullname, MAX_PATH),
MAX_PATH
) )
return fullname;
}
+// return the full path of the program file
+inline wxString wxGetFullModuleName()
+{
+ return wxGetFullModuleName((HMODULE)wxGetInstance());
+}
+
#if wxUSE_GUI
// cursor stuff