An application sends an EM_SETHANDLE message to set the handle of the memory that will be used by a multiline edit control.
EM_SETHANDLE wParam = (WPARAM) (HLOCAL) hloc; // handle of memory buffer lParam = 0; // not used; must be zero
This message does not return a value.
Before an application sets a new memory handle, it should send an EM_GETHANDLE message to retrieve the handle of the current memory buffer and should free that memory.
An edit control automatically reallocates the given buffer whenever it needs additional space for text, or it removes enough text so that additional space is no longer needed.
Sending an EM_SETHANDLE message clears the undo buffer (EM_CANUNDO returns zero) and the internal modification flag (EM_GETMODIFY returns zero). The edit control window is redrawn.
An application can send this message to a multiline edit control in a dialog box only if it has created the dialog box with the DS_LOCALEDIT style flag set.
EM_CANUNDO, EM_GETHANDLE, EM_GETMODIFY
file: /Techref/os/win/api/win32/mess/src/msg06_3.htm, 2KB, , updated: 2000/4/7 11:20, local time: 2024/12/2 04:27,
18.191.200.223:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/os/win/api/win32/mess/src/msg06_3.htm"> EM_SETHANDLE</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.