Rev | Line | |
---|
[781] | 1 | #pragma once
|
---|
| 2 |
|
---|
[784] | 3 | #include <memory>
|
---|
| 4 | #include <windows.h>
|
---|
[789] | 5 | #include <boost/optional.hpp>
|
---|
[784] | 6 |
|
---|
[781] | 7 | namespace ActiveBasic { namespace Resource {
|
---|
| 8 |
|
---|
[784] | 9 | HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
[786] | 10 | HICON LoadIcon(HINSTANCE hinst, USHORT id);
|
---|
[781] | 11 |
|
---|
[786] | 12 | HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
|
---|
| 13 |
|
---|
[789] | 14 | boost::optional<std::wstring> LoadString(HINSTANCE hinst, USHORT id);
|
---|
| 15 |
|
---|
[791] | 16 | HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id);
|
---|
| 17 |
|
---|
[792] | 18 | HMENU LoadMenu(HINSTANCE hinst, USHORT id);
|
---|
| 19 |
|
---|
[784] | 20 | struct IconDeleter
|
---|
| 21 | {
|
---|
| 22 | typedef HICON pointer;
|
---|
| 23 |
|
---|
| 24 | void operator ()(HICON hicon) const
|
---|
| 25 | {
|
---|
| 26 | ::DestroyIcon(hicon);
|
---|
| 27 | }
|
---|
| 28 | };
|
---|
| 29 |
|
---|
| 30 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
| 31 |
|
---|
[781] | 32 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.