|
Bottomless Rich Edit Controls
An application can resize a rich edit control as needed so that it is always
the same size as its contents. A rich edit control supports this so-called
"bottomless" functionality by sending its parent window an EN_REQUESTRESIZE notification message whenever the size of its contents changes.
When processing the EN_REQUESTRESIZE notification message, an application
should resize the control to the dimensions in the specified REQRESIZE structure. An application might also move any information near the control to
accommodate the control's change in height. To resize the control, you can use
the SetWindowPos function.
You can force a bottomless rich edit control to send an EN_REQUESTRESIZE notification message by using the EM_REQUESTRESIZE message. This message can be useful when processing the WM_SIZE message.
To receive EN_REQUESTRESIZE notification messages, you must enable the
notification by using the EM_SETEVENTMASK message.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|