Last change
on this file since 786 was 786, checked in by イグトランス (egtra), 13 years ago |
abdevにおいて、resについてアイコン・カーソルを自前関数での読込へ変更。
|
File size:
486 bytes
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include <memory>
|
---|
4 | #include <windows.h>
|
---|
5 |
|
---|
6 | namespace ActiveBasic { namespace Resource {
|
---|
7 |
|
---|
8 | HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
9 | HICON LoadIcon(HINSTANCE hinst, USHORT id);
|
---|
10 |
|
---|
11 | HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
|
---|
12 |
|
---|
13 | struct IconDeleter
|
---|
14 | {
|
---|
15 | typedef HICON pointer;
|
---|
16 |
|
---|
17 | void operator ()(HICON hicon) const
|
---|
18 | {
|
---|
19 | ::DestroyIcon(hicon);
|
---|
20 | }
|
---|
21 | };
|
---|
22 |
|
---|
23 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
24 |
|
---|
25 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.