[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
HDLG pascal DialogCreate(HWND hParent, int row1, int col1, int row2,
int col2, char *title, WORD attr, DWORD dlgflags,
int (pascal *dlgfunc)(), WORD id)
This function creates a dialog box and returns its handle. The
dialog box is initially invisible, and won't be displayed until you
call the DialogBox() function.
Parameters
hParent is the handle of the window who owns the dialog box, or
NULLHWND if there is no parent.
row1, col1, row2, and col2 specify the 0-based screen coordinates
which the dialog box will encompass.
title is a null-terminated string which will be the caption of the
dialog box.
attr is the color attribute of the dialog box. See the section on
attributes for more information.
dlgflags contain status info for the dialog box.
dlgfunc is a pointer to the dialog box callback function. The
callback function must have the following form:
int pascal dlgfunc(HDLG hDlg, WORD message, WORD wParam, DWORD
lParam)
The callback function is further discussed in the section dealing
with the DialogBox() function.
id is the control identifier of the dialog box.
Returns
The handle of the newly created dialog box is returned. If the
dialog box could not be created, NULLHWND (0) is returned.
See Also:
DialogBox
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson