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
RevLine 
[781]1#pragma once
2
[784]3#include <memory>
4#include <windows.h>
5
[781]6namespace ActiveBasic { namespace Resource {
7
[784]8HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
[786]9HICON LoadIcon(HINSTANCE hinst, USHORT id);
[781]10
[786]11HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
12
[784]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
[781]25}}
Note: See TracBrowser for help on using the repository browser.