MLE Styles

The style of an MLE field control determines how the MLE field appears and behaves. An application can specify a combination of the following styles for an MLE field:

┌────────────────────┬────────────────────────────────────────┐
│Style Name          │Description                             │
├────────────────────┼────────────────────────────────────────┤
│MLS_BORDER          │Draws a border around the MLE field.    │
├────────────────────┼────────────────────────────────────────┤
│MLS_DISABLEUNDO     │Directs the MLE control not to allow    │
│                    │undo actions.                           │
├────────────────────┼────────────────────────────────────────┤
│MLS_HSCROLL         │Adds a horizontal scroll bar to the MLE │
│                    │field. The MLE control enables this     │
│                    │scroll bar whenever any line exceeds the│
│                    │width of the MLE field.                 │
├────────────────────┼────────────────────────────────────────┤
│MLS_IGNORETAB       │Directs the MLE control to ignore the   │
│                    │Tab key. It passes the appropriate      │
│                    │WM_CHAR to its owner window.            │
├────────────────────┼────────────────────────────────────────┤
│MLS_LIMITVSCROLL    │Displays the last MLE line at the bottom│
│                    │of the screen page. When this style is  │
│                    │not used, the MLE control shows an empty│
│                    │space between the last MLE line and the │
│                    │bottom of the screen page.              │
├────────────────────┼────────────────────────────────────────┤
│MLS_READONLY        │Prevents the MLE field from accepting   │
│                    │text from the user. This style is useful│
│                    │for displaying lengthy static text in a │
│                    │client or dialog window.                │
├────────────────────┼────────────────────────────────────────┤
│MLS_VSCROLL         │Adds a vertical scroll bar to the MLE   │
│                    │field. The MLE control enables this     │
│                    │scroll bar whenever the number of lines │
│                    │exceeds the height of the MLE field.    │
├────────────────────┼────────────────────────────────────────┤
│MLS_WORDWRAP        │Automatically breaks lines that are     │
│                    │longer than the width of the MLE field. │
└────────────────────┴────────────────────────────────────────┘


[Back: About Multiple-Line Entry Field Controls]
[Next: MLE Notification Codes]