Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include <memory>
|
---|
4 | #include <windows.h>
|
---|
5 | #include <boost/optional.hpp>
|
---|
6 |
|
---|
7 | namespace ActiveBasic { namespace Resource {
|
---|
8 |
|
---|
9 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
10 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
|
---|
11 |
|
---|
12 | HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
|
---|
13 |
|
---|
14 | boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
|
---|
15 |
|
---|
16 | HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
|
---|
17 |
|
---|
18 | HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
|
---|
19 |
|
---|
20 | INT_PTR DialogBoxAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
|
---|
21 | HWND CreateDialogAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
|
---|
22 |
|
---|
23 | struct IconDeleter
|
---|
24 | {
|
---|
25 | typedef HICON pointer;
|
---|
26 |
|
---|
27 | void operator ()(HICON hicon) const
|
---|
28 | {
|
---|
29 | ::DestroyIcon(hicon);
|
---|
30 | }
|
---|
31 | };
|
---|
32 |
|
---|
33 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
34 |
|
---|
35 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.