1 | #pragma once
|
---|
2 |
|
---|
3 | #include <utility>
|
---|
4 | #include <memory>
|
---|
5 | #include <windows.h>
|
---|
6 | #include <boost/optional.hpp>
|
---|
7 |
|
---|
8 | namespace ActiveBasic { namespace Resource {
|
---|
9 |
|
---|
10 | void* LoadResourceAlt(HINSTANCE hinst, USHORT id, LPCTSTR type);
|
---|
11 | std::pair<void*, DWORD> LoadResourceAltWithSize(HINSTANCE hinst, USHORT id, LPCTSTR type);
|
---|
12 |
|
---|
13 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
14 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
|
---|
15 |
|
---|
16 | HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
|
---|
17 |
|
---|
18 | boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
|
---|
19 |
|
---|
20 | HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
|
---|
21 |
|
---|
22 | HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
|
---|
23 |
|
---|
24 | INT_PTR DialogBoxAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
|
---|
25 | HWND CreateDialogAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
|
---|
26 |
|
---|
27 | HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id);
|
---|
28 |
|
---|
29 | struct IconDeleter
|
---|
30 | {
|
---|
31 | typedef HICON pointer;
|
---|
32 |
|
---|
33 | void operator ()(HICON hicon) const
|
---|
34 | {
|
---|
35 | ::DestroyIcon(hicon);
|
---|
36 | }
|
---|
37 | };
|
---|
38 |
|
---|
39 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
40 |
|
---|
41 | }}
|
---|