Changeset 784 in dev for branches/egtra/ab5.0/abdev/abdev-impl
- Timestamp:
- Jan 29, 2011, 6:17:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h
r781 r784 1 1 #pragma once 2 3 #include <memory> 4 #include <windows.h> 2 5 3 6 namespace ActiveBasic { namespace Resource { 4 7 5 HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load); 8 HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0); 9 10 struct IconDeleter 11 { 12 typedef HICON pointer; 13 14 void operator ()(HICON hicon) const 15 { 16 ::DestroyIcon(hicon); 17 } 18 }; 19 20 typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon; 6 21 7 22 }}
Note:
See TracChangeset
for help on using the changeset viewer.