ReactOS  0.4.12-dev-75-g00dd17e
ExecuteDialog Struct Reference

The "Execute..."-dialog lets the user enter a command line to launch. More...

#include <filechild.h>

Collaboration diagram for ExecuteDialog:

Static Public Member Functions

static INT_PTR CALLBACK WndProc (HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam)
 

Public Attributes

TCHAR cmd [MAX_PATH]
 
int cmdshow
 

Detailed Description

The "Execute..."-dialog lets the user enter a command line to launch.

Definition at line 133 of file filechild.h.

Member Function Documentation

◆ WndProc()

INT_PTR CALLBACK ExecuteDialog::WndProc ( HWND  hwnd,
UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
)
static

Definition at line 95 of file filechild.cpp.

Referenced by MainFrameBase::Command().

96 {
97  static struct ExecuteDialog* dlg;
98 
99  switch(nmsg) {
100  case WM_INITDIALOG:
101  dlg = (struct ExecuteDialog*) lparam;
102  return 1;
103 
104  case WM_COMMAND: {
105  int id = (int)wparam;
106 
107  if (id == IDOK) {
108  GetWindowText(GetDlgItem(hwnd, 201), dlg->cmd, COUNTOF(dlg->cmd));
109  dlg->cmdshow = Button_GetState(GetDlgItem(hwnd,214))&BST_CHECKED?
111  EndDialog(hwnd, id);
112  } else if (id == IDCANCEL)
113  EndDialog(hwnd, id);
114 
115  return 1;}
116  }
117 
118  return 0;
119 }
#define IDOK
Definition: winuser.h:824
#define SW_SHOWMINIMIZED
Definition: winuser.h:765
#define Button_GetState(hwndCtl)
Definition: windowsx.h:7
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
#define GetWindowText
Definition: winuser.h:5664
TCHAR cmd[MAX_PATH]
Definition: filechild.h:134
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define WM_COMMAND
Definition: winuser.h:1716
UINT WPARAM LPARAM lparam
Definition: msvc.h:92
#define SW_SHOWNORMAL
Definition: winuser.h:764
The "Execute..."-dialog lets the user enter a command line to launch.
Definition: filechild.h:133
#define BST_CHECKED
Definition: winuser.h:197
#define COUNTOF(x)
Definition: utility.h:93
#define IDCANCEL
Definition: winuser.h:825
#define WM_INITDIALOG
Definition: winuser.h:1715
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:29
UINT WPARAM wparam
Definition: msvc.h:92

Member Data Documentation

◆ cmd

TCHAR ExecuteDialog::cmd[MAX_PATH]
Todo:
use class Dialog

Definition at line 134 of file filechild.h.

Referenced by WndProc().

◆ cmdshow

int ExecuteDialog::cmdshow

Definition at line 135 of file filechild.h.

Referenced by WndProc().


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