#include "ltwrappr.h"

L_BOOL LVectorWindow::SetSelectedOnly(bSelectedOnly)

Sets the selected-only state of the LVectorWindow object. This determines if selected objects or all objects are affected when auto scaling or rotating using the rotate tool. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.


L_BOOL bSelectedOnly

Flag that indicates which objects to process. Possible values are:

Value Meaning
TRUE Process only selected objects.
FALSE Process all objects.


The previous setting.


If the SelectedOnly state is set to TRUE (LVectorWindow::GetSelectedOnly, [LVectorWindow:SetSelectedOnly), then only selected objects will be scaled or rotated. If the SelectedOnly state is set to FALSE, then ALL objects are scaled or rotated.

Note: When setting SetSelectedOnly(TRUE), the scale of the entire vector is reset to (1,1,1).

Required DLLs and Libraries

See Also



Assumes pVectorWindow points to a valid LVectorWindow object
This example toggles the Selected Only state of the LVectorWindow object

L_INT LVectorWindow__SetSelectedOnlyExample(HWND hWndParent, LVectorWindow *pVectorWindow) 
   pVectorWindow->SetSelectedOnly( !pVectorWindow->GetSelectedOnly()); 
   if (pVectorWindow->GetSelectedOnly()) 
      SetWindowText(hWndParent, TEXT("Selected-Only Enabled")); 
      SetWindowText(hWndParent, TEXT("Selected-Only Disabled")); 
   return SUCCESS; 

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

LEADTOOLS Vector C++ Class Library Help