#pragma once #include #include #include #include namespace ActiveBasic { namespace Resource { void* LoadResourceAlt(HINSTANCE hinst, USHORT id, LPCTSTR type); std::pair LoadResourceAltWithSize(HINSTANCE hinst, USHORT id, LPCTSTR type); HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0); HICON LoadIconAlt(HINSTANCE hinst, USHORT id); HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id); boost::optional LoadStringAlt(HINSTANCE hinst, USHORT id); HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id); HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id); INT_PTR DialogBoxAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0); HWND CreateDialogAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0); HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id); struct IconDeleter { typedef HICON pointer; void operator ()(HICON hicon) const { ::DestroyIcon(hicon); } }; typedef std::unique_ptr UniqueHIcon; }}