ReactOS  0.4.15-dev-1150-g593bcce
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 ( void  )

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 }
Definition: window.h:584
BOOL WINAPI DestroyWindow(_In_ HWND)
& rect
Definition: startmenu.cpp:1413
#define SM_CXSCREEN
Definition: winuser.h:949
smooth NULL
Definition: ftsmooth.c:416
void WINAPI RunFileDlg(HWND hWndOwner, HICON hIcon, LPCWSTR lpstrDirectory, LPCWSTR lpstrTitle, LPCWSTR lpstrDescription, UINT uFlags)
Definition: dialogs.cpp:398
#define SM_CYSCREEN
Definition: winuser.h:950
int WINAPI GetSystemMetrics(_In_ int)
#define RFF_CALCDIRECTORY
Definition: run.h:48
#define TEXT(s)
Definition: k32.h:26
#define DESKTOPBARBAR_HEIGHT
Definition: desktopbar.h:33

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