Defines

Custom Curve Control Flags

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

Defines

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

Define Documentation

#define CC_DRAWBG   (1<<0)

Draw the white background in the graph window.

#define CC_DRAWGRID   (1<<1)

Draw the grid lines and coordinates in the graph window.

#define CC_DRAWUTOOLBAR   (1<<2)

Draw the upper toolbar above the control.

#define CC_SHOWRESET   (1<<3)

Display the Reset button in the upper toolbar.

#define CC_DRAWLTOOLBAR   (1<<4)

Draw the lower toolbar beneath the control.

#define CC_DRAWSCROLLBARS   (1<<5)

Draw the horizontal and vertical scroll bars for the control.

#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.

#define CC_DRAWRULER   (1<<7)

Draw a small moveable ruler window that measures horizontal coordinates.

#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.

#define CC_CONSTRAIN_Y   (1<<9)

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

#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.

#define CC_RCMENU_MOVE_XY   (1<<11)

Right-click menu item.

#define CC_RCMENU_MOVE_X   (1<<12)

Right-click menu item.

#define CC_RCMENU_MOVE_Y   (1<<13)

Right-click menu item.

#define CC_RCMENU_SCALE   (1<<14)

Right-click menu item.

#define CC_RCMENU_INSERT_CORNER   (1<<15)

Right-click menu item.

#define CC_RCMENU_INSERT_BEZIER   (1<<16)

Right-click menu item.

#define CC_RCMENU_DELETE   (1<<17)

Right-click menu item.

#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.

#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

#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.

#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.

#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