ReactOS 0.4.16-dev-303-g11d5cb8
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.

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));
111 EndDialog(hwnd, id);
112 } else if (id == IDCANCEL)
113 EndDialog(hwnd, id);
114
115 return 1;}
116 }
117
118 return 0;
119}
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
#define COUNTOF(x)
Definition: utility.h:93
The "Execute..."-dialog lets the user enter a command line to launch.
Definition: filechild.h:133
TCHAR cmd[MAX_PATH]
Definition: filechild.h:134
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define Button_GetState(hwndCtl)
Definition: windowsx.h:32
#define SW_SHOWNORMAL
Definition: winuser.h:773
#define IDCANCEL
Definition: winuser.h:834
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_INITDIALOG
Definition: winuser.h:1742
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define IDOK
Definition: winuser.h:833
#define SW_SHOWMINIMIZED
Definition: winuser.h:774
#define GetWindowText
Definition: winuser.h:5810
#define BST_CHECKED
Definition: winuser.h:197
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

Referenced by MainFrameBase::Command().

Member Data Documentation

◆ cmd

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

Definition at line 134 of file filechild.h.

Referenced by MainFrameBase::Command(), and WndProc().

◆ cmdshow

int ExecuteDialog::cmdshow

Definition at line 135 of file filechild.h.

Referenced by MainFrameBase::Command(), and WndProc().


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