foobar2000 SDK  2015-08-03
Namespaces | Functions
win32_dialog.cpp File Reference

Go to the source code of this file.

Namespaces

 dialog_helper
 

Functions

HWND uCreateDialog (UINT id, HWND parent, DLGPROC proc, LPARAM param)
 
int uDialogBox (UINT id, HWND parent, DLGPROC proc, LPARAM param)
 

Function Documentation

HWND uCreateDialog ( UINT  id,
HWND  parent,
DLGPROC  proc,
LPARAM  param 
)

Wrapper (provided mainly for old code), simplifies parameters compared to standard CreateDialog() by using core_api::get_my_instance().

Definition at line 281 of file win32_dialog.cpp.

282 {
283  return CreateDialogParam(core_api::get_my_instance(),MAKEINTRESOURCE(id),parent,proc,param);
284 }
HINSTANCE get_my_instance()
Retrieves HINSTANCE of calling DLL.
int uDialogBox ( UINT  id,
HWND  parent,
DLGPROC  proc,
LPARAM  param 
)

Wrapper (provided mainly for old code), simplifies parameters compared to standard DialogBox() by using core_api::get_my_instance().

Definition at line 286 of file win32_dialog.cpp.

287 {
288  return (int)DialogBoxParam(core_api::get_my_instance(),MAKEINTRESOURCE(id),parent,proc,param);
289 }
HINSTANCE get_my_instance()
Retrieves HINSTANCE of calling DLL.