![]() |
Sorting Network Verify and Draw
Check Whether Comparator Networks Sort and Draw Them
|
Custom dialog box. More...
#include <DialogBox.h>
Public Member Functions | |
| HRESULT | GetNumInputs (HWND, UINT &) |
| Get number of inputs. More... | |
Static Public Member Functions | |
| static BOOL CALLBACK | DlgProc (HWND, UINT, WPARAM, LPARAM) |
| Dialog box procedure. More... | |
Static Private Attributes | |
| static UINT | m_nNumInputs = 0 |
| Number of inputs. More... | |
Custom dialog box for getting the number of inputs from the user for a generated sorting network.
Definition at line 36 of file DialogBox.h.
|
static |
If the user clicks on the OK button, then m_nNumInputs is set to the value in the edit box. If anything goes wrong, m_nNumInputs is set to zero.
| hDlg | Dialog box handle. |
| iMsg | Message code. |
| wp | Parameter for message. |
| lp | Second parameter for message if needed. |
Definition at line 57 of file DialogBox.cpp.
| HRESULT CDialogBox::GetNumInputs | ( | HWND | hwnd, |
| UINT & | n | ||
| ) |
Pop up a custom modal dialog box and get an unsigned integer from an edit box. Fail if something goes wrong or the requested number of inputs is less than 2.
| hwnd | Window handle. |
| n | [OUT] Reference to result. |
Definition at line 38 of file DialogBox.cpp.
|
staticprivate |
Definition at line 38 of file DialogBox.h.