3 #ifndef _FOOBAR2000_HELPERS_WIN32_DIALOG_H_ 4 #define _FOOBAR2000_HELPERS_WIN32_DIALOG_H_ 27 __declspec(deprecated) HWND run_modeless(
unsigned id,HWND parent);
30 static INT_PTR CALLBACK
DlgProc(HWND wnd,UINT msg,WPARAM wp,LPARAM lp);
45 inline dialog_modal() : m_wnd(0) {}
47 inline HWND
get_wnd()
const {
return m_wnd;}
49 static INT_PTR CALLBACK
DlgProc(HWND wnd,UINT msg,WPARAM wp,LPARAM lp);
79 inline
dialog_modeless() : m_wnd(0), m_destructor_status(destructor_none), m_is_in_create(false) {}
80 inline HWND
get_wnd()
const {
return m_wnd;}
83 static INT_PTR CALLBACK
DlgProc(HWND
wnd,UINT msg,WPARAM wp,LPARAM lp);
84 void on_window_destruction();
86 BOOL on_message_wrap(UINT msg,WPARAM wp,LPARAM lp);
104 static INT_PTR CALLBACK
DlgProc(HWND
wnd,UINT msg,WPARAM wp,LPARAM lp);
105 void detach_window();
106 BOOL on_message_internal(UINT msg,WPARAM wp,LPARAM lp);
107 enum {status_construction,
status_lifetime, status_destruction_requested, status_destruction} m_status;
__declspec(deprecated) int run_modal(unsigned id
The purpose of modal_dialog_scope is to help to avoid the modal dialog recursion problem. Current toplevel modal dialog handle is stored globally, so when creation of a new modal dialog is blocked, it can be activated to indicate the reason for the task being blocked.
typedef BOOL(WINAPI *pPowerSetRequest_t)(__in HANDLE PowerRequest
HWND uCreateDialog(UINT id, HWND parent, DLGPROC proc, LPARAM param=0)
Wrapper (provided mainly for old code), simplifies parameters compared to standard CreateDialog() by ...
This class is meant to be instantiated on-stack, as a local variable. Using new/delete operators inst...
static INT_PTR CALLBACK DlgProc(HWND wnd, UINT msg, WPARAM wp, LPARAM lp)
void end_dialog(int code)
modal_dialog_scope m_modal_scope
virtual BOOL on_message(UINT msg, WPARAM wp, LPARAM lp)=0
static dialog_modeless_v2 * __unsafe__instance_from_window(HWND p_wnd)
modal_dialog_scope m_modal_scope
virtual BOOL on_message(UINT msg, WPARAM wp, LPARAM lp)
void create(pfc::string_formatter &p_out, const t_entry_list &p_data)
HINSTANCE get_my_instance()
Retrieves HINSTANCE of calling DLL.
int uDialogBox(UINT id, HWND parent, DLGPROC proc, LPARAM param=0)
Wrapper (provided mainly for old code), simplifies parameters compared to standard DialogBox() by usi...
This class is meant to be used with new/delete operators only. Destroying the window - outside create...