Last change
on this file since 791 was 791, checked in by イグトランス (egtra), 13 years ago |
LoadAccelerators代替関数の実装
|
File size:
646 bytes
|
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 LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
10 | HICON LoadIcon(HINSTANCE hinst, USHORT id);
|
---|
11 |
|
---|
12 | HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
|
---|
13 |
|
---|
14 | boost::optional<std::wstring> LoadString(HINSTANCE hinst, USHORT id);
|
---|
15 |
|
---|
16 | HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id);
|
---|
17 |
|
---|
18 | struct IconDeleter
|
---|
19 | {
|
---|
20 | typedef HICON pointer;
|
---|
21 |
|
---|
22 | void operator ()(HICON hicon) const
|
---|
23 | {
|
---|
24 | ::DestroyIcon(hicon);
|
---|
25 | }
|
---|
26 | };
|
---|
27 |
|
---|
28 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
29 |
|
---|
30 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.