yucad3d

CadWndCreate

Creates the library-owned CAD child window inside the host window and returns its HWND — yucad paints and handles all input for it (viewport, grid, crosshair, commands).

void* CadWndCreate ( YuHandle hDwg, void* hWndParent, std::int32_t cadStyle, std::int32_t x, std::int32_t y, std::int32_t w, std::int32_t h );

Parameters

hDwg (YuHandle)
Handle to the drawing, as returned by CadCreate.
hWndParent (void*)
Host window handle (Win32 HWND, passed as an opaque pointer).
cadStyle (std::int32_t)
Integer value.
x (std::int32_t)
Cursor position in client-area pixels.
y (std::int32_t)
Cursor position in client-area pixels.
w (std::int32_t)
Integer value.
h (std::int32_t)
Integer value.

Return Value

The HWND of the created CAD child window, or NULL on failure.

See Also