Static Public Member Functions | Public Attributes

ExecuteDialog Struct Reference

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

#include <filechild.h>

Collaboration diagram for ExecuteDialog:
Collaboration graph
[legend]

List of all members.

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

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

Definition at line 98 of file filechild.cpp.

References cmd, cmdshow, and COUNTOF.

Referenced by MainFrameBase::Command().

{
    static struct ExecuteDialog* dlg;

    switch(nmsg) {
      case WM_INITDIALOG:
        dlg = (struct ExecuteDialog*) lparam;
        return 1;

      case WM_COMMAND: {
        int id = (int)wparam;

        if (id == IDOK) {
            GetWindowText(GetDlgItem(hwnd, 201), dlg->cmd, COUNTOF(dlg->cmd));
            dlg->cmdshow = Button_GetState(GetDlgItem(hwnd,214))&BST_CHECKED?
                                            SW_SHOWMINIMIZED: SW_SHOWNORMAL;
            EndDialog(hwnd, id);
        } else if (id == IDCANCEL)
            EndDialog(hwnd, id);

        return 1;}
    }

    return 0;
}

Here is the caller graph for this function:


Member Data Documentation

Todo:
use class Dialog

Definition at line 134 of file filechild.h.

Referenced by WndProc().

Definition at line 135 of file filechild.h.

Referenced by WndProc().


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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage