3ds Max C++ API Reference
Custom Curve Control Flags

These flags control various display aspects of the custom curve control which includes window gemometry and features. More...

Macros

#define CC_DRAWBG   (1<<0)
 Draw the white background in the graph window. More...
 
#define CC_DRAWGRID   (1<<1)
 Draw the grid lines and coordinates in the graph window. More...
 
#define CC_DRAWUTOOLBAR   (1<<2)
 Draw the upper toolbar above the control. More...
 
#define CC_SHOWRESET   (1<<3)
 Display the Reset button in the upper toolbar. More...
 
#define CC_DRAWLTOOLBAR   (1<<4)
 Draw the lower toolbar beneath the control. More...
 
#define CC_DRAWSCROLLBARS   (1<<5)
 Draw the horizontal and vertical scroll bars for the control. More...
 
#define CC_AUTOSCROLL   (1<<6)
 Auto scroll happens when you drag a CurvePoint out of the currently visible range. More...
 
#define CC_DRAWRULER   (1<<7)
 Draw a small moveable ruler window that measures horizontal coordinates. More...
 
#define CC_ASPOPUP   (1<<8)
 Show the window as popup window. More...
 
#define CC_CONSTRAIN_Y   (1<<9)
 No points (or handles) can be moved out of the value that is set by SetYRange(). More...
 
#define CC_HIDE_DISABLED_CURVES   (1<<10)
 If this is not set, the disabled curves will be drawn by the color set by SetDisabledPenProperty(). More...
 
#define CC_RCMENU_MOVE_XY   (1<<11)
 Right-click menu item. More...
 
#define CC_RCMENU_MOVE_X   (1<<12)
 Right-click menu item. More...
 
#define CC_RCMENU_MOVE_Y   (1<<13)
 Right-click menu item. More...
 
#define CC_RCMENU_SCALE   (1<<14)
 Right-click menu item. More...
 
#define CC_RCMENU_INSERT_CORNER   (1<<15)
 Right-click menu item. More...
 
#define CC_RCMENU_INSERT_BEZIER   (1<<16)
 Right-click menu item. More...
 
#define CC_RCMENU_DELETE   (1<<17)
 Right-click menu item. More...
 
#define CC_SHOW_CURRENTXVAL   (1<<18)
 You loose the automatic switch from insert to move mode when right-clicking, if a RightClick menu is active. More...
 
#define CC_SINGLESELECT   (1<<19)
 Normally, if several points are stacked in area, clicking on the area you get all of them. More...
 
#define CC_NOFILTERBUTTONS   (1<<20)
 This is useful when there are many curves and you want to manage the display yourself. More...
 
#define CC_ALL_RCMENU   (CC_RCMENU_MOVE_XY|CC_RCMENU_MOVE_X|CC_RCMENU_MOVE_Y|CC_RCMENU_SCALE|CC_RCMENU_INSERT_CORNER|CC_RCMENU_INSERT_BEZIER|CC_RCMENU_DELETE)
 Entire right click menu. More...
 
#define CC_ALL   (CC_DRAWBG|CC_DRAWGRID|CC_DRAWUTOOLBAR|CC_SHOWRESET|CC_DRAWLTOOLBAR|CC_DRAWSCROLLBARS|CC_AUTOSCROLL|CC_DRAWRULER|CC_ASPOPUP|CC_CONSTRAIN_Y|CC_HIDE_DISABLED_CURVES| CC_ALL_RCMENU )
 
#define CC_NONE   0
 

Detailed Description

These flags control various display aspects of the custom curve control which includes window gemometry and features.

See ICurveCtl::SetCCFlags() and ICurveCtl::GetCCFlags().

Developers can review these by running the curve control utility CCUtil in \MAXSDK\SAMPLES\UTILITIES\CCUTIL.

See also
Class ICurveCtl.

Macro Definition Documentation

◆ CC_DRAWBG

#define CC_DRAWBG   (1<<0)

Draw the white background in the graph window.

◆ CC_DRAWGRID

#define CC_DRAWGRID   (1<<1)

Draw the grid lines and coordinates in the graph window.

◆ CC_DRAWUTOOLBAR

#define CC_DRAWUTOOLBAR   (1<<2)

Draw the upper toolbar above the control.

◆ CC_SHOWRESET

#define CC_SHOWRESET   (1<<3)

Display the Reset button in the upper toolbar.

◆ CC_DRAWLTOOLBAR

#define CC_DRAWLTOOLBAR   (1<<4)

Draw the lower toolbar beneath the control.

◆ CC_DRAWSCROLLBARS

#define CC_DRAWSCROLLBARS   (1<<5)

Draw the horizontal and vertical scroll bars for the control.

◆ CC_AUTOSCROLL

#define CC_AUTOSCROLL   (1<<6)

Auto scroll happens when you drag a CurvePoint out of the currently visible range.

In case you're zoomed in, the window will automtically scroll. Do auto scrolling.

◆ CC_DRAWRULER

#define CC_DRAWRULER   (1<<7)

Draw a small moveable ruler window that measures horizontal coordinates.

◆ CC_ASPOPUP

#define CC_ASPOPUP   (1<<8)

Show the window as popup window.

If this is not set, it is important to set SetCustomParentWnd(HWND hParent)=0 for the parent of the CurveControl Window. Create the control as a pop-up with a title string.

◆ CC_CONSTRAIN_Y

#define CC_CONSTRAIN_Y   (1<<9)

No points (or handles) can be moved out of the value that is set by SetYRange().

◆ CC_HIDE_DISABLED_CURVES

#define CC_HIDE_DISABLED_CURVES   (1<<10)

If this is not set, the disabled curves will be drawn by the color set by SetDisabledPenProperty().

Disabled curves won't be displayed at all.

◆ CC_RCMENU_MOVE_XY

#define CC_RCMENU_MOVE_XY   (1<<11)

Right-click menu item.

◆ CC_RCMENU_MOVE_X

#define CC_RCMENU_MOVE_X   (1<<12)

Right-click menu item.

◆ CC_RCMENU_MOVE_Y

#define CC_RCMENU_MOVE_Y   (1<<13)

Right-click menu item.

◆ CC_RCMENU_SCALE

#define CC_RCMENU_SCALE   (1<<14)

Right-click menu item.

◆ CC_RCMENU_INSERT_CORNER

#define CC_RCMENU_INSERT_CORNER   (1<<15)

Right-click menu item.

◆ CC_RCMENU_INSERT_BEZIER

#define CC_RCMENU_INSERT_BEZIER   (1<<16)

Right-click menu item.

◆ CC_RCMENU_DELETE

#define CC_RCMENU_DELETE   (1<<17)

Right-click menu item.

◆ CC_SHOW_CURRENTXVAL

#define CC_SHOW_CURRENTXVAL   (1<<18)

You loose the automatic switch from insert to move mode when right-clicking, if a RightClick menu is active.

Also, pressing the Control key while inserting keys will insert the opposite type of key as what's currently selected (bezier or corner). And, pressing the Shift key while moving a tangent converts a bezier key into a bezier corner key. Allows a vertical bar to be drawn over the graph to show the current X value.

◆ CC_SINGLESELECT

#define CC_SINGLESELECT   (1<<19)

Normally, if several points are stacked in area, clicking on the area you get all of them.

With this flag you get the first one only. Allows the user to single select a point

◆ CC_NOFILTERBUTTONS

#define CC_NOFILTERBUTTONS   (1<<20)

This is useful when there are many curves and you want to manage the display yourself.

Turns off the curve visible/editable toggle in the top of the menu bar.

◆ CC_ALL_RCMENU

◆ CC_ALL

◆ CC_NONE

#define CC_NONE   0