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

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
6namespace ActiveBasic { namespace Resource {
7
8HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
9HICON LoadIcon(HINSTANCE hinst, USHORT id);
10
11HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
12
13struct IconDeleter
14{
15 typedef HICON pointer;
16
17 void operator ()(HICON hicon) const
18 {
19 ::DestroyIcon(hicon);
20 }
21};
22
23typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
24
25}}
Note: See TracBrowser for help on using the repository browser.