source: dev/branches/egtra/ab5.0/abdev/abdev-impl/Resource/Load.h@ 784

Last change on this file since 784 was 784, checked in by イグトランス (egtra), 13 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
6namespace ActiveBasic { namespace Resource {
7
8HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
9
10struct IconDeleter
11{
12 typedef HICON pointer;
13
14 void operator ()(HICON hicon) const
15 {
16 ::DestroyIcon(hicon);
17 }
18};
19
20typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
21
22}}
Note: See TracBrowser for help on using the repository browser.