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

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

LoadBitmapの代替関数を実装

File size: 987 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 LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
10HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
11
12HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
13
14boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
15
16HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
17
18HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
19
20INT_PTR DialogBoxAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
21HWND CreateDialogAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
22
23HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id);
24
25struct IconDeleter
26{
27 typedef HICON pointer;
28
29 void operator ()(HICON hicon) const
30 {
31 ::DestroyIcon(hicon);
32 }
33};
34
35typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
36
37}}
Note: See TracBrowser for help on using the repository browser.