Last change
on this file since 785 was 784, checked in by イグトランス (egtra), 14 years ago |
icon_resをLOAD_LIBRARY_AS_DATAFILE付きで読み込むよう変更。icon_resプロジェクトをab.slnへ組み込んだ。
|
File size:
390 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 |
|
---|
10 | struct IconDeleter
|
---|
11 | {
|
---|
12 | typedef HICON pointer;
|
---|
13 |
|
---|
14 | void operator ()(HICON hicon) const
|
---|
15 | {
|
---|
16 | ::DestroyIcon(hicon);
|
---|
17 | }
|
---|
18 | };
|
---|
19 |
|
---|
20 | typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
|
---|
21 |
|
---|
22 | }}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.