Cured DC/GDI object leak; listbox window proc restored from debugging
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,13 +154,8 @@ bool wxICOResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, cons
|
||||
}
|
||||
|
||||
#ifdef __WIN32__
|
||||
/***
|
||||
DWORD vers = GetVersion() ;
|
||||
WORD high = HIWORD(vers) ; // high bit=0 for NT, 1 for Win32s
|
||||
// Win32s doesn't have GetIconInfo function...
|
||||
if (M_ICONHANDLERDATA->m_hIcon && (high&0x8000)==0 )
|
||||
***/
|
||||
if (M_ICONHANDLERDATA->m_hIcon && wxGetOsVersion()==wxWINDOWS_NT)
|
||||
if (M_ICONHANDLERDATA->m_hIcon && wxGetOsVersion()!=wxWIN32S)
|
||||
{
|
||||
ICONINFO info ;
|
||||
if (::GetIconInfo((HICON) M_ICONHANDLERDATA->m_hIcon, &info))
|
||||
|
Reference in New Issue
Block a user