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 |
|
---|
[793] | 9 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
| 10 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
|
---|
[781] | 11 |
|
---|
[793] | 12 | HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
|
---|
[786] | 13 |
|
---|
[793] | 14 | boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
|
---|
[789] | 15 |
|
---|
[793] | 16 | HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
|
---|
[791] | 17 |
|
---|
[793] | 18 | HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
|
---|
[792] | 19 |
|
---|
[794] | 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 |
|
---|
[795] | 23 | HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id);
|
---|
| 24 |
|
---|
[784] | 25 | struct IconDeleter
|
---|
| 26 | {
|
---|
| 27 | typedef HICON pointer;
|
---|
| 28 |
|
---|
| 29 | void operator ()(HICON hicon) const
|
---|
| 30 | {
|
---|
| 31 | ::DestroyIcon(hicon);
|
---|
| 32 | }
|
---|
| 33 | };
|
---|
| 34 |
|
---|
| 35 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
| 36 |
|
---|
[781] | 37 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.