CadPrint
Print the drawing.
std::int32_t CadPrint (
YuHandle hDwg,
std::int32_t bStamp,
void* hDC
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - bStamp (std::int32_t)
- Boolean flag: nonzero = true / enabled, 0 = false / disabled.
- hDC (void*)
- Win32 device-context handle (
HDC) to draw / print into.
Return Value
Nonzero (TRUE) on success, 0 (FALSE) on failure.
Remarks
With a host-supplied printer HDC, render the page to a DIB and StretchDIBits it onto that DC (GDI bridge — the Vecad contract: the host owns the DC, yucad paints the page). With no DC, drive Qt's QPrinter + the system print dialog.