Raised to allow custom drawing of selection handles.
VB6
![]() |
---|
Public Event DrawSelHandles |
Parameter | Type | Description |
---|---|---|
hdc | [input] long | A pointer to the drawing surface. Cast it to an HDC handle if using the classic graphics engine or to a pointer to a GDI+ Graphics object if using the GDI+ engine. |
obj | [input] reference to a diagram item | The diagram item whose selection handles must be painted. |
Dispatch ID: 87
The event is raised for selected items whose SelStyle is set to sstCustom. The drawing surface passed as the first argument is already prepared for drawing, having the needed transformations applied to match the diagram's ZoomFactor and scroll position. Use the appropriate GDI API functions or methods of the GDI+ Graphics class to perform custom drawing on the specified drawing surface.
The following MFC example shows how to perform custom drawing of selection handles in both the classic and GDI+ graphics engines.
C++
![]() |
---|
void CCustomDrawDlg::onBoxCreated(LPDISPATCH boxDisp) |