Last change
on this file since 786 was 786, checked in by イグトランス (egtra), 13 years ago |
abdevにおいて、resについてアイコン・カーソルを自前関数での読込へ変更。
|
File size:
486 bytes
|
Rev | Line | |
---|
[781] | 1 | #pragma once
|
---|
| 2 |
|
---|
[784] | 3 | #include <memory>
|
---|
| 4 | #include <windows.h>
|
---|
| 5 |
|
---|
[781] | 6 | namespace ActiveBasic { namespace Resource {
|
---|
| 7 |
|
---|
[784] | 8 | HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
|
---|
[786] | 9 | HICON LoadIcon(HINSTANCE hinst, USHORT id);
|
---|
[781] | 10 |
|
---|
[786] | 11 | HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
|
---|
| 12 |
|
---|
[784] | 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 |
|
---|
[781] | 25 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.