GLBEDIT: Raises Text Size Limit for Edit Controls

GLBEDIT demonstrates how an edit control can have its own
data segment and thus increase its text size. By default,
the buffer for an edit control is allocated from the
application's data segment. Space is a scarce resource in
the data segment because the segment also stores
information for other controls.

Normally, the edit controls in a dialog box use one common
global data segment per dialog box. If the dialog box has
the DS_LOCALEDIT style, the edit controls use the data
segment that hInstance (used to create the dialog box)
points to. Edit controls created with CreateWindow also
use the data segment that hInstance points to.

The GLBEDIT sample shows how to change hInstance to point
to a new global object. Multiple controls of any type can
use the same memory object. Search for WM_CREATE in the
 MainWndProc code for an example.

GLBEDIT is included in the Microsoft(R) Knowledge Base
Software/Data Library. On the Microsoft Developer Network
CD, search for the numbers prefixed with "S" and "Q" in
the Keywords section below for more information on this
sample application.

GLBEDIT was built and tested under Microsoft Windows(TM)
versions 3.0 and 3.1, and Microsoft C/C++ version 7.0.

KEYWORDS: CD4; S13200; Q77287
