LRasterPaintWindow::SetWndHandle

Summary

Sets the handle of the window to be attached to the paint window.

Syntax

#include "Ltwrappr.h"

L_INT LRasterPaintWindow::SetWndHandle(hWnd)

Parameters

HWND hWnd

Handle to the window to be attached to the paint window.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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.

Required DLLs and Libraries

See Also

Functions

Example

L_INT LRasterPaintWindow_SetWndHandleExample(HWND hWnd, UINT uMsg , WPARAM wParam,  LPARAM lParam) 
{ 
   L_INT                nRet; 
   LRasterPaintWindow   MyLRasterPntWnd; 
 
   nRet = MyLRasterPntWnd.SetWndHandle(hWnd); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   MyLRasterPntWnd.HandlePalette (uMsg , wParam , lParam); 
 
   MyLRasterPntWnd.Repaint (); 
 
   return SUCCESS; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DigitalPaint C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.