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

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

LoadString代替関数の実装

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