ReactOS 0.4.15-dev-8227-g32d615f
RunDialogThread Struct Reference
Inheritance diagram for RunDialogThread:
Collaboration diagram for RunDialogThread:

Public Member Functions

int Run ()
 

Detailed Description

Definition at line 2080 of file startmenu.cpp.

Member Function Documentation

◆ Run()

int RunDialogThread::Run ( )

Definition at line 2085 of file startmenu.cpp.

2086{
2087 static DynamicFct<RUNFILEDLG> RunFileDlg(TEXT("SHELL32"), 61);
2088
2089 // RunFileDlg needs owner window to properly position dialog
2090 // that window will be disabled so we can't use DesktopBar
2091 RECT rect = {0};
2092#ifndef TASKBAR_AT_TOP
2094#endif
2096 rect.bottom = rect.top + DESKTOPBARBAR_HEIGHT;
2097 Static dlgOwner(0, 0, rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top, 0, 0);
2098
2099 // Show "Run..." dialog
2100 if (RunFileDlg) {
2101 (*RunFileDlg)(dlgOwner, 0, NULL, NULL, NULL, RFF_CALCDIRECTORY);
2102 }
2103 DestroyWindow(dlgOwner);
2104 return 0;
2105}
#define DESKTOPBARBAR_HEIGHT
Definition: desktopbar.h:33
#define NULL
Definition: types.h:112
void WINAPI RunFileDlg(HWND hWndOwner, HICON hIcon, LPCWSTR lpstrDirectory, LPCWSTR lpstrTitle, LPCWSTR lpstrDescription, UINT uFlags)
Definition: dialogs.cpp:409
#define TEXT(s)
Definition: k32.h:26
#define RFF_CALCDIRECTORY
Definition: run.h:35
& rect
Definition: startmenu.cpp:1413
Definition: window.h:585
#define SM_CYSCREEN
Definition: winuser.h:960
#define SM_CXSCREEN
Definition: winuser.h:959
BOOL WINAPI DestroyWindow(_In_ HWND)
int WINAPI GetSystemMetrics(_In_ int)

The documentation for this struct was generated from the following file: