Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Using Multiple-Line Entry-Field Controls (1.2)
◄About Section► ◄Message Group► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
Using Multiple-Line Entry-Field Controls
You can create an MLE by using the WinCreateWindow function or by specifying
the MLE statement in a dialog-window template in a resource file. The
following example shows how to create an MLE by using WinCreateWindow:
HWND hwndParent; /* parent-window handle */
HWND hwndMLE; /* MLE handle */
hwndMLE = WinCreateWindow(hwndParent,
WC_MLE,
"Test",
MLS_BORDER | WS_VISIBLE,
100, 100, 100, 100,
hwndParent,
HWND_TOP,
2, NULL, NULL);
An MLE has the WC_MLE window class. As with other controls created using the
WinCreateWindow function, the WS_VISIBLE style must be set to display the
window immediately.
It is more common to create an MLE by using an MLE statement in a
dialog-window template in a resource file, as shown in the following
example:
MLE "", 101, 110, 10, 50, 100
The predefined class for an MLE is WC_MLE. If you do not specify a style,
the default styles MLS_BORDER, WS_GROUP, and WS_TABSTOP are used.
♦