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
RevLine 
[781]1#pragma once
2
[797]3#include <utility>
[784]4#include <memory>
5#include <windows.h>
[789]6#include <boost/optional.hpp>
[784]7
[781]8namespace ActiveBasic { namespace Resource {
9
[797]10void* LoadResourceAlt(HINSTANCE hinst, USHORT id, LPCTSTR type);
11std::pair<void*, DWORD> LoadResourceAltWithSize(HINSTANCE hinst, USHORT id, LPCTSTR type);
12
[793]13HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
14HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
[781]15
[793]16HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
[786]17
[793]18boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
[789]19
[793]20HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
[791]21
[793]22HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
[792]23
[794]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
[795]27HBITMAP LoadBitmapAlt(HINSTANCE hinst, USHORT id);
28
[784]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
[781]41}}
Note: See TracBrowser for help on using the repository browser.