LDialogBase::EnableGdiPlus

#include "ltwrappr.h"

static L_BOOL LDialogBase::EnableGdiPlus (bEnable)

L_BOOL bEnable;

flag that indicates using GDI+

Enables or disables using GDI+ for the LEADTOOLS Common Dialogs.

Parameter Description
bEnable Flag that indicates whether to enable or disable using GDI+ when painting the preview thumbnail of an image on the right hand side for the open dialog and the before/after previews. Possible values are:
  Value Meaning
  TRUE Uses GDI+.
  FALSE Uses GDI.

Returns

The previous state.

Required DLLs and Libraries

LTDLGKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LDialogBase::SetFont, LDialogBase::GetString, LDialogBase::SetString, LDialogBase::Free, Class Members

Topics:

Using Imaging Common Dialog

Example

L_INT LDialogBase_EnableGdiPlusExample(LBitmap * pBitmap, HWND hWnd) 
{ 
   L_INT nRet; 
   LDialogColor DlgColor; 
   nRet = DlgColor.Initialize(DLG_INIT_COLOR ); 
   if(nRet != SUCCESS) 
      return nRet; 
   DlgColor.SetBitmap(pBitmap); 
   DlgColor.EnableGdiPlus(TRUE); 
   BRIGHTNESSDLGPARAMS DlgParams; 
   memset ( &DlgParams, 0, sizeof ( BRIGHTNESSDLGPARAMS ) ) ; 
   DlgParams.uStructSize      = sizeof ( BRIGHTNESSDLGPARAMS ) ; 
   DlgColor.EnableCallBack (FALSE); 
   DlgColor.EnablePreview(TRUE); 
   DlgColor.EnableAutoProcess(TRUE); 
   DlgColor.EnableToolbar(TRUE); 
   nRet = DlgColor.SetBrightnessParams(&DlgParams) ; 
   if(nRet != SUCCESS) 
      return nRet; 
   nRet = DlgColor.DoModalBrightness(hWnd); 
   if(nRet < 1) 
      return nRet; 
   // Gets the updated values for the structure 
   nRet = DlgColor.GetBrightnessParams(&DlgParams, sizeof(DlgParams)) ; 
   if(nRet != SUCCESS) 
      return nRet; 
   nRet = DlgColor.Free(); 
   if(nRet != SUCCESS) 
      return nRet; 
   return nRet; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Common Dialog C++ Class Library Help