|
|
An simplified version of CreateMainWindowIndirectParam. This macro calls CreateMainWindowIndirectParam with lParam set to be 0. |
|
|
3 States button item.
|
|
|
Button item: can be checked.
|
|
|
Default pushbutton.
|
|
|
Understands EM_SETSEL message.
|
|
|
Non-default pushbutton.
|
|
|
Radio button.
|
|
|
Static item: don't include.
|
|
|
Control wants all keys.
|
|
|
Control wants arrow keys.
|
|
|
Want MSG_CHAR messages.
|
|
|
Control wants enter keys.
|
|
|
Control wants tab keys.
|
|
|
Structure which defines a control. |
|
|
Structure which defines a dialogbox. Example:
static DLGTEMPLATE DlgInitProgress = { WS_BORDER | WS_CAPTION, WS_EX_NONE, 120, 150, 400, 130, "VAM-CNC is initializing", 0, 0, 3, NULL, 0 }; static CTRLDATA CtrlInitProgress [] = { { "static", WS_VISIBLE | SS_SIMPLE, 10, 10, 380, 16, IDC_PROMPTINFO, "Initialize...", 0 }, { "progressbar", WS_VISIBLE, 10, 40, 380, 20, IDC_PROGRESS, NULL, 0 }, { "button", WS_TABSTOP | WS_VISIBLE | BS_DEFPUSHBUTTON, 170, 70, 60, 25, IDOK, "OK", 0 } }; |
|
||||||||||||||||
|
Changes the check status of a button control. This function changes the check status of the button control whose identifier is nIDDlgItem in the dialog box hDlg.
|
|
||||||||||||||||||||
|
Adds a check mark to (checks) a specified radio button in a group and removes a check mark from (clears) all other radio buttons in the group. This function adds a check mark to (checks) the specified radio button idCheckButton in a group between idFirstButton and idLastButton, and removes a check mark from (clears) all other radio buttons in the group.
|
|
||||||||||||||||||||
|
Uses a dialog template to create a modeless main window and controls in it, and pass a parameter to the window procedure. This function uses a dialog template pointed to by pDlgTemplate to create a modeless main window and controls in it. The parameter specified by lParam will be passed to the window procedure as the second paramter of MSG_INITDIALOG message.
|
|
|
Destroys all controls in a window. This function destroys all controls (child windows) in a window.
|
|
|
Destroys a main window created by CreateMainWindowIndirectParam. This function destroys the main window which was created by CreateMainWindowIndirectParam function.
|
|
||||||||||||||||||||
|
Creates a modal dialog box from a dialog box template in memory. This function creates a modal dialog box from a dialog box template in memory. Before displaying the dialog box, the function passes an application-defined value to the dialog box procedure as the second parameter of the MSG_INITDIALOG message. An application can use this value to initialize the controls in the dialog box.
/* * The following code defines the dialog box callback procedure * and displays the dialog box by calling DialogBoxIndirectParam function. */ static int InitDialogBoxProc (HWND hDlg, int message, WPARAM wParam, LPARAM lParam) { switch (message) { case MSG_INITDIALOG: return 1; case MSG_COMMAND: switch (wParam) { case IDOK: case IDCANCEL: EndDialog (hDlg, wParam); break; } break; } return DefaultDialogProc (hDlg, message, wParam, lParam); } static void InitDialogBox (HWND hWnd) { /* Assoiciate the dialog with the controls */ DlgInitProgress.controls = CtrlInitProgress; /* Display the dialog box and wait */ DialogBoxIndirectParam (&DlgInitProgress, hWnd, InitDialogBoxProc, 0L); } |
|
||||||||||||
|
Destroys a modal dialog box, causing MiniGUI to end any processing for the dialog box. This function destroys the modal dialog box hDlg created by DialogBoxIndirectParam and ends any processing for the dialog box. The argument endCode will be returned by DialogBoxIndirectParam as the return value.
|
|
|
Gets the integer identifier of a control. This function gets the integer identifier of the control hwndCtl.
|
|
|
Gets the default push button control in a window. This function gets the handle to the default push button (with BS_DEFPUSHBUTTON style) in the specified window hWnd.
|
|
||||||||||||
|
Retrives the handle to a control in a dialog box. This function retrives the handle to a control, whose identifier is nIDDlgItem, in the specified dialog box hDlg.
|
|
||||||||||||||||||||
|
Translates the text of a control in a dialog box into an integer value. This function translates the text of the control, whose identifier is nIDDlgItem in the dialog box hDlg into an integer value.
|
|
||||||||||||||||||||
|
Retrieves the title or text associated with a control in a dialog box. This function retrives the title or text associated with a control, whose identifier is nIDDlgItem in the dialog box hDlg.
|
|
||||||||||||||||
|
Retrieves the title or text associated with a control in a dialog box. This function is similiar as GetDlgItemText function, but it allocates memory for the text and returns the pointer to the allocated buffer. You should free the buffer when done by using free function.
|
|
||||||||||||||||
|
Retrieves the handle to the first control in a group of controls that precedes (or follows) the specified control in a dialog box. This function retrieves the handle to the first control in a group of controls that precedes (or follows) the specified control hCtl in the dialog box hDlg.
|
|
||||||||||||||||
|
Retrieves the handle to the first control that has the WS_TABSTOP style that precedes (or follows) the specified control. This function retrieves the handle to the first control that has the WS_TABSTOP style that precedes (or follows) the specified control hCtl in the dialog box hDlg.
|
|
||||||||||||
|
Determines whether a button control has a check mark next to it or whether a three-state button control is grayed, checked, or neither. This function determines whether the button control whose identifier is idButton has a check mark next to it or whether a three-state button control is grayed, checked, or neither.
|
|
||||||||||||||||||||||||
|
Sends a message to the specified control in a dialog box. This function sends a message specified by (message, wParam, lParam) to the specified control whose identifier is nIDDlgItem in the dialog box hDlg.
|
|
||||||||||||||||||||
|
Sets the text of a control in a dialog box to the string representation of a specified integer value. This function sets the text of the control whose identifier is nIDDlgItem in the dialog box hDlg to the string representation of the specified integer value nValue.
|
|
||||||||||||||||
|
Sets the title or text of a control in a dialog box. This function sets the title or text of the control whose identifier is nIDDlgItem in the dialog box hDlg to the string pointed to by lpString.
|
1.4.2