source: dev/trunk/ab5.0/abdev/abdev-impl/Resource/Load.h

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

svn:eol-styleとsvn:mime-type(文字コード指定含む)の設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain; charset=Shift_JIS
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.