git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34248
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
sei.hIcon = NULL;
sei.hInstApp = NULL;
sei.hkeyClass = NULL;
sei.hIcon = NULL;
sei.hInstApp = NULL;
sei.hkeyClass = NULL;
sei.hProcess = NULL;
sei.hwnd = NULL;
sei.lpClass = NULL;
sei.hProcess = NULL;
sei.hwnd = NULL;
sei.lpClass = NULL;
// to it without breaking backwards compatibility
// classic Win32 version -- this can be useful when we move this into
// to it without breaking backwards compatibility
// classic Win32 version -- this can be useful when we move this into
UINT state = DFCS_BUTTONCHECK;
if ( !IsEnabled() )
state |= DFCS_INACTIVE;
UINT state = DFCS_BUTTONCHECK;
if ( !IsEnabled() )
state |= DFCS_INACTIVE;
{
wxNativeFontInfo info;
info.lf = lf;
{
wxNativeFontInfo info;
info.lf = lf;
// We want Windows 2000 or later to have new fonts even MS Shell Dlg
// is returned as default GUI font for compatibility
int verMaj;
if(index == DEFAULT_GUI_FONT && wxGetOsVersion(&verMaj) == wxWINDOWS_NT && verMaj >= 5)
wxStrcpy(info.lf.lfFaceName, wxT("MS Shell Dlg 2"));
// We want Windows 2000 or later to have new fonts even MS Shell Dlg
// is returned as default GUI font for compatibility
int verMaj;
if(index == DEFAULT_GUI_FONT && wxGetOsVersion(&verMaj) == wxWINDOWS_NT && verMaj >= 5)
wxStrcpy(info.lf.lfFaceName, wxT("MS Shell Dlg 2"));
// Under MicroWindows we pass the HFONT as well
// because it's hard to convert HFONT -> LOGFONT -> HFONT
// It's OK to delete stock objects, the delete will be ignored.
// Under MicroWindows we pass the HFONT as well
// because it's hard to convert HFONT -> LOGFONT -> HFONT
// It's OK to delete stock objects, the delete will be ignored.