Sets the handle of the window to be attached to the paint window.
Handle to the window to be attached to the paint window.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
The passed window handle will be attached to the paint window. If NULL is passed, then the previously attached window will be detached from the paint window.
L_INT LRasterPaintWindow_SetWndHandleExample(HWND hWnd, UINT uMsg , WPARAM wParam, LPARAM lParam)
nRet = MyLRasterPntWnd.SetWndHandle(hWnd);
if(nRet != SUCCESS)
MyLRasterPntWnd.HandlePalette (uMsg , wParam , lParam);