[781] | 1 | #pragma once
|
---|
| 2 |
|
---|
[797] | 3 | #include <utility>
|
---|
[784] | 4 | #include <memory>
|
---|
| 5 | #include <windows.h>
|
---|
[789] | 6 | #include <boost/optional.hpp>
|
---|
[784] | 7 |
|
---|
[781] | 8 | namespace ActiveBasic { namespace Resource {
|
---|
| 9 |
|
---|
[797] | 10 | void* LoadResourceAlt(HINSTANCE hinst, USHORT id, LPCTSTR type);
|
---|
| 11 | std::pair<void*, DWORD> LoadResourceAltWithSize(HINSTANCE hinst, USHORT id, LPCTSTR type);
|
---|
| 12 |
|
---|
[793] | 13 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
| 14 | HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
|
---|
[781] | 15 |
|
---|
[793] | 16 | HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
|
---|
[786] | 17 |
|
---|
[793] | 18 | boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
|
---|
[789] | 19 |
|
---|
[793] | 20 | HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
|
---|
[791] | 21 |
|
---|
[793] | 22 | HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
|
---|
[792] | 23 |
|
---|
[794] | 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 |
|
---|
[795] | 27 | HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id);
|
---|
| 28 |
|
---|
[784] | 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 |
|
---|
[781] | 41 | }}
|
---|