MKI_DialogCollectionHandleColor (Dialogs) New in Version 2020.0

www.CAD6.com

C++ Syntax

bool

MKI_DialogCollectionHandleColor(

 HWND f_hWindow,

 __int32 f_nCtlID,

 MKI_COLORVALUE f_cColorValueIn,

 MKI_COLORMODEL f_cColorModelIn,

 MKI_COLORDEF_PTR f_pColorOut );

 

Displays a context menu for handling colors in the pinboard and the collections. It enables the user to add a given color to the pinboard or a collection, or to get a color from the pinboard or a collection.

 

Parameters

Window

[HWND] Handle of the dialog window whose control was clicked.

CtlID

[__int32] ID of the control that was clicked (only used to position the context menu).

ColorValueIn

[MKI_COLORVALUE] Current color value that can be stored.

ColorModelIn

[MKI_COLORMODEL] Current color model that can be stored. May be MKI_COLORMODE_BYLAYER if nothing can be stored, the corresponding menu items will be disabled.

ColorOut

[MKI_COLORDEF_PTR] Color chosen by the user. May be nullptr if nothing can be chosen, the corresponding menu items will be disabled.

 

Return Value

Returns true if the user chose an item from the pinboard or a collection, the resulting data was stored in ColorOut.

 

CAD6interface 2025.1 - Copyright 2025 Malz++Kassner® GmbH