Changeset 795 in dev for branches/egtra/ab5.0/abdev/abdev-impl/Resource
- Timestamp:
- Jan 31, 2011, 12:18:33 AM (14 years ago)
- Location:
- branches/egtra/ab5.0/abdev/abdev-impl/Resource
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.cpp
r794 r795 5 5 #include <boost/range/adaptor/transformed.hpp> 6 6 #include <boost/numeric/conversion/cast.hpp> 7 #include <atlbase.h> 8 #pragma warning(push) 9 #pragma warning(disable: 6387) 10 #include <atlapp.h> 11 #include <atlgdi.h> 12 #pragma warning(pop) 7 13 #include <Resource/Load.h> 8 14 … … 182 188 } 183 189 190 HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id) 191 { 192 WTL::CDC dc = ::GetDC(nullptr); 193 auto pbi = static_cast<BITMAPINFO const*>(GetResource(hinst, id, RT_BITMAP)); 194 return CreateDIBitmap(dc, &pbi->bmiHeader, CBM_INIT, reinterpret_cast<BYTE const*>(pbi) + pbi->bmiHeader.biSize, pbi, DIB_RGB_COLORS); 195 } 196 184 197 }} -
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h
r794 r795 21 21 HWND CreateDialogAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0); 22 22 23 HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id); 24 23 25 struct IconDeleter 24 26 {
Note:
See TracChangeset
for help on using the changeset viewer.