- wxBitmapRefData *data = bitmap->GetBitmapData();
- if ( bitmap->Ok() )
- {
- BITMAP bm;
- if ( !::GetObject(GetHbitmapOf(*bitmap), sizeof(BITMAP), (LPSTR) &bm) )
- {
- wxLogLastError(wxT("GetObject(HBITMAP)"));
- }
-
- data->m_width = bm.bmWidth;
- data->m_height = bm.bmHeight;
- data->m_depth = bm.bmBitsPixel;
- }
- else