Raised to allow custom drawing of selection handles.
SyntaxVB6
Copy Code
|
|---|
Public Event DrawSelHandles |
Event DataParameter | 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
RemarksThe 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.
ExampleThe following MFC example shows how to perform custom drawing of selection handles in both the classic and GDI+ graphics engines.
C++
Copy Code
|
|---|
void CCustomDrawDlg::onBoxCreated(LPDISPATCH boxDisp) |
See Also