EM_SETTARGETDEVICE

The EM_SETTARGETDEVICE message sets the target device and line width used for WYSIWYG (what you see is what you get) formatting in a rich edit control.

EM_SETTARGETDEVICE 
wParam = (WPARAM) (HDC) hdcTarget; 
lParam = (LPARAM) (int) cxLineWidth; 
 

Parameters

hdcTarget
Handle to a device context for the target device.
cxLineWidth
Line width to use for formatting.

Return Values

Returns a nonzero value if successful or zero otherwise.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Messages