Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
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.
CEdit::GetHandle
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  HANDLE GetHandle() const;
 
  Remarks
 
  Retrieves a handle to the memory currently allocated for a multiple-line
  edit control. The handle is a local memory handle and may be used by any
  of the Local Windows memory functions that take a local memory handle as
  a parameter.
 
  GetHandle is only processed by multiple-line edit controls.
 
  Call GetHandle for a multiple-line edit control in a dialog box only if
  the dialog box was created with the DS_LOCALEDIT style flag set. If the
  DS_LOCALEDIT style is not set, you will still get a nonzero return
  value, but you will not be able to use the returned value.
 
  Return Value
 
  A local memory handle that identifies the buffer that holds the contents
  of the edit control. If an error occurs, such as sending the message to
  a single-line edit control, the return value is 0.
 
  See Also
 
  CEdit::SetHandle, EM_GETHANDLE
 
 
                                     -♦-