|
Last change
on this file since 784 was 784, checked in by イグトランス (egtra), 15 years ago |
|
icon_resをLOAD_LIBRARY_AS_DATAFILE付きで読み込むよう変更。icon_resプロジェクトをab.slnへ組み込んだ。
|
|
File size:
390 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);
|
|---|
| [781] | 9 |
|
|---|
| [784] | 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 |
|
|---|
| [781] | 22 | }}
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.