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

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

DialogBox, CreateDialogの代替関数を実装

File size: 933 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
[793]9HICON LoadIconAlt(HINSTANCE hinst, USHORT id, int cxDesired, int cyDesired, UINT load = 0);
10HICON LoadIconAlt(HINSTANCE hinst, USHORT id);
[781]11
[793]12HCURSOR LoadCursorAlt(HINSTANCE hinst, USHORT id);
[786]13
[793]14boost::optional<std::wstring> LoadStringAlt(HINSTANCE hinst, USHORT id);
[789]15
[793]16HACCEL LoadAcceleratorsAlt(HINSTANCE hinst, USHORT id);
[791]17
[793]18HMENU LoadMenuAlt(HINSTANCE hinst, USHORT id);
[792]19
[794]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
[784]23struct IconDeleter
24{
25 typedef HICON pointer;
26
27 void operator ()(HICON hicon) const
28 {
29 ::DestroyIcon(hicon);
30 }
31};
32
33typedef std::unique_ptr<HICON, IconDeleter> UniqueHIcon;
34
[781]35}}
Note: See TracBrowser for help on using the repository browser.