LContainer::SetOwnerDraw

#include "Ltwrappr.h"

L_INT LContainer::SetOwnerDraw (bOwnerDraw, dwFlags)

Sets the container to owner draw mode.

Parameters

L_BOOL bOwnerDraw

Flag that indicates whether to enable or disable the container owner draw mode. Possible values are:

Value Meaning
TRUE Enable owner draw mode.
FALSE Disable owner draw mode.

L_UINT32 dwFlags

Reserved for future use. Must be 0.

Returns

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

Comments

When the owner draw mode is disabled, the drawing of objects is handled automatically. If the owner draw mode is enabled, the user must handle all aspects of drawing objects.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example toggles the owner draw mode of the container.

L_INT LContainer_SetOwnerDrawExample(LContainer & lcont) 
 
{ 
   L_BOOL fOwnerDraw ; 
 
   /* Get the owner draw mode of the container */ 
 
   fOwnerDraw =lcont.IsOwnerDraw () ; 
 
   /* Toggle the state and return */ 
 
   return lcont.SetOwnerDraw (!fOwnerDraw, 0 ) ; 
 
} 

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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