// Created: 20.11.99
// RCS-ID: $Id$
// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
WXHBITMAP hBitmap = (WXHBITMAP)wxLoadBMP(name);
if(hBitmap) {
bitmap->SetHBITMAP(hBitmap);
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
#endif
}
return dib.Save(name);
#else
- return FALSE;
+ return false;
#endif
}
wxSize wxGetHiconSize(HICON hicon)
{
- wxSize size(32, 32); // default
+ // default icon size on this hardware
+ // usually 32x32 but can be other (smaller) on pocket devices
+ wxSize size(::GetSystemMetrics(SM_CXICON), ::GetSystemMetrics(SM_CYICON));
+
#ifndef __WXWINCE__
if ( hicon && wxGetOsVersion() != wxWIN32S )
{
::DeleteObject(info.hbmColor);
}
}
+#else
+ wxUnusedVar(hicon);
#endif
return size;
}
pBmpInfo->bmiHeader.biSizeImage = nBitsSize;
//HBITMAP hBitmap=SetBitmap((LPBITMAPINFO)pBmpInfo, pBits);
- DWORD dwBitmapInfoSize = sizeof(BITMAPINFO) + nColors*sizeof(RGBQUAD);
+ //DWORD dwBitmapInfoSize = sizeof(BITMAPINFO) + nColors*sizeof(RGBQUAD);
// Create a DC which will be used to get DIB, then create DIBsection
HDC hDC = ::GetDC(NULL);