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

Last change on this file since 792 was 792, checked in by イグトランス (egtra), 13 years ago

LoadMenuの代替関数を実装

File size: 693 bytes
Line 
1#pragma once
2
3#include <memory>
4#include <windows.h>
5#include <boost/optional.hpp>
6
7namespace ActiveBasic { namespace Resource {
8
9HICON LoadIcon(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
10HICON LoadIcon(HINSTANCE hinst, USHORT id);
11
12HCURSOR LoadCursor(HINSTANCE hinst, USHORT id);
13
14boost::optional<std::wstring> LoadString(HINSTANCE hinst, USHORT id);
15
16HACCEL LoadAccelerators(HINSTANCE hinst, USHORT id);
17
18HMENU LoadMenu(HINSTANCE hinst, USHORT id);
19
20struct IconDeleter
21{
22 typedef HICON pointer;
23
24 void operator ()(HICON hicon) const
25 {
26 ::DestroyIcon(hicon);
27 }
28};
29
30typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
31
32}}
Note: See TracBrowser for help on using the repository browser.