#pragma once #include #include #include namespace ActiveBasic { namespace Resource { HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0); HICON LoadIcon(HINSTANCE hinst, USHORT id); HCURSOR LoadCursor(HINSTANCE hinst, USHORT id); boost::optional LoadString(HINSTANCE hinst, USHORT id); HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id); struct IconDeleter { typedef HICON pointer; void operator ()(HICON hicon) const { ::DestroyIcon(hicon); } }; typedef std::unique_ptr UniqueHIcon; }}