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

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

プロパティシート周りを9x対応させた

File size: 1.1 KB
Line 
1#pragma once
2
3#include <utility>
4#include <memory>
5#include <windows.h>
6#include <boost/optional.hpp>
7
8namespace ActiveBasic { namespace Resource {
9
10void* LoadResourceAlt(HINSTANCE hinst, USHORT id, LPCTSTR type);
11std::pair<void*, DWORD> LoadResourceAltWithSize(HINSTANCE hinst, USHORT id, LPCTSTR type);
12
13HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
14HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
15
16HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
17
18boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
19
20HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
21
22HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
23
24INT_PTR DialogBoxAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
25HWND CreateDialogAlt(HINSTANCE hinst, USHORT id, HWND hwndParent, DLGPROC dialogFunc, LPARAM initParam = 0);
26
27HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id);
28
29struct IconDeleter
30{
31 typedef HICON pointer;
32
33 void operator ()(HICON hicon) const
34 {
35 ::DestroyIcon(hicon);
36 }
37};
38
39typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
40
41}}
Note: See TracBrowser for help on using the repository browser.