This reference page is linked to from the following overview topics: Parameter Block UI Specification Arguments, Parameter UI Control Types, Spinner and Slider Control Types, Keyboard Accelerators and Dialog Messages, Processing User Input from Custom Controls, Methods and Classes of Custom Controls, Command Modes and Mouse Procedures, Scene State Changes that Cannot be Undone, Creating Parameter Blocks.
#include "maxheap.h"
#include "winutil.h"
#include "buildver.h"
#include "strclass.h"
#include "actiontableTypedefs.h"
#include "acolor.h"
#include "baseinterface.h"
#include "RollupConstants.h"
Go to the source code of this file.
Classes |
|
class | DADMgr |
class | ICustomControl |
class | CUIPosData |
class | CUIFrameMsgHandler |
class | ICUIFrame |
class | ICUIFrameDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICUIFrame pointers. More... |
|
class | CUIFrameMgr |
class | MacroButtonData |
class | ISpinnerControl |
class | ISpinnerControlDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ISpinnerControl pointers.
More... |
|
class | ISliderControl |
class | ISliderControlDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ISliderControl pointers. More... |
|
class | IRollupCallback |
class IRollupCallback
: public InterfaceServer More... |
|
class | IRollupPanel |
class IRollupPanel :
public InterfaceServer More... |
|
class | IRollupRCMenuItem |
class IRollupRCMenuItem
: public InterfaceServer More... |
|
class | IRollupWindow |
class | IRollupWindowDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping IRollupWindow pointers. More... |
|
class | ICustEdit |
class | ICustEditDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustEdit pointers. More... |
|
class | ICustStatusEdit |
class | ICustStatusEditDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustStatusEdit pointers.
More... |
|
class | FlyOffData |
class | ICustButton |
class | ICustButtonDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustButton pointers. More... |
|
class | ICustStatus |
class | ICustStatusDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustStatus pointers. More... |
|
class | ICustSeparator |
class | ICustSeparatorDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustSeparator pointers. More... |
|
class | ToolItem |
class | ToolButtonItem |
This class describes the properties of a 3ds
Max custom toolbar button. More... |
|
class | ToolMacroItem |
class | ToolSeparatorItem |
class | ToolStatusItem |
class | ToolOtherItem |
class | ICustToolbar |
class | ICustToolbarDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustToolbar pointers. More... |
|
class | ICustImage |
class | ICustImageDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping ICustImage pointers. More... |
|
class | IOffScreenBuf |
class | IColorSwatch |
class | IColorSwatchDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping IColorSwatch pointers. More... |
|
class | IColorSwatchRenamer |
class IColorSwatchRenamer More... |
|
class | IDADWindow |
class | IDADWindowDestructorPolicy |
Class representing the DestructorPolicy for
AutoPtr instances wrapping IDADWindow pointers. More... |
|
Defines |
|
#define | CHILDWND_CUI |
#define | I_EXEC_CB_NO_BORDER 0xA000 |
Pass this to CustButton::Execute() to
turnoff borders, like in the toolbar. |
|
#define | I_EXEC_CS_NO_BORDER 0xA001 |
Pass this to CustStatus::Execute() to
turnoff borders, like in the toolbar. |
|
#define | I_EXEC_SPINNER_RESET 0xA002 |
Set a spinner back to its Reset value.
|
|
#define | I_EXEC_SPINNER_IS_RESET_CHANGE 0xA003 |
When called during a CC_SPINNER_xxx
messages, it will return true if the msg was triggered by a
right-click reset. |
|
#define | I_EXEC_SPINNER_ALT_DISABLE 0xA004 |
disable the alt key spinner behaviour
|
|
#define | I_EXEC_SPINNER_ALT_ENABLE 0xA005 |
enable the alt key spinner behaviour
|
|
#define | I_EXEC_SPINNER_ONE_CLICK_DISABLE 0xA006 |
disable the one click spinner behaviour with
alt or ctrl down |
|
#define | I_EXEC_SPINNER_ONE_CLICK_ENABLE 0xA007 |
enable the one click spinner behaviour with
alt or ctrl down |
|
#define | I_EXEC_BUTTON_DAD_ENABLE 0xA008 |
enable or disable button drag & drop
within a toolbar |
|
#define | I_EXEC_GET_TOOLTIP_HWND 0xA009 |
return the hwnd for the tooltip |
|
#define | OWNER_MEDIT_SAMPLE 0 |
#define | OWNER_NODE 1 |
#define | OWNER_MTL_TEX 2 |
#define | OWNER_SCENE 3 |
#define | OWNER_BROWSE_NEW 4 |
#define | OWNER_BROWSE_LIB 5 |
#define | OWNER_BROWSE_MEDIT 6 |
#define | OWNER_BROWSE_SCENE 7 |
#define | OWNER_MATERIAL_EXPLORER 8 |
#define | CUIFRAMECLASS _M("CUIFrame") |
#define | CUI_TOOLBAR (1<<0) |
set if frame holds toolbars and/or tool
palettes |
|
#define | CUI_MENU (1<<1) |
set if frame holds a menu |
|
#define | CUI_HWND (1<<2) |
set if frame hold a generic hWnd |
|
#define | CUI_TOP_DOCK (1<<0) |
Can be docked at the top.
|
|
#define | CUI_BOTTOM_DOCK (1<<1) |
Can be docked at the bottom.
|
|
#define | CUI_LEFT_DOCK (1<<2) |
Can be docked on the left.
|
|
#define | CUI_RIGHT_DOCK (1<<3) |
Can be docked at the right.
|
|
#define | CUI_ALL_DOCK (CUI_TOP_DOCK|CUI_BOTTOM_DOCK|CUI_LEFT_DOCK|CUI_RIGHT_DOCK) |
Can be docked at any of the four positions.
|
|
#define | CUI_HORIZ_DOCK (CUI_TOP_DOCK|CUI_BOTTOM_DOCK) |
Can be docked at the top or bottom.
|
|
#define | CUI_VERT_DOCK (CUI_LEFT_DOCK|CUI_RIGHT_DOCK) |
Can be docked at the left or right.
|
|
#define | CUI_FLOATABLE (1<<4) |
Can be floated.
|
|
#define | CUI_FLOATING (1<<4) |
Synonym for CUI_FLOATABLE.
|
|
#define | CUI_CONNECTABLE (1<<5) |
Not currently implemented.
|
|
#define | CUI_SM_HANDLES (1<<6) |
Set if frame should display size/move
handles.
|
|
#define | CUI_SLIDING (1<<7) |
Frame doesn't butt up against the one next
to it.
|
|
#define | CUI_MAX_SIZED (1<<8) |
Frame takes up the entire row.
|
|
#define | CUI_DONT_SAVE (1<<9) |
Don't save this CUI frame in the .cui file.
|
|
#define | CUI_HAS_MENUBAR (1<<10) |
CUI frames that have a menu bar need to be
treated differently.
|
|
#define | CUI_MINIMIZED_DOCKABLE (1<<11) |
CUI frames can be minimized docked, which
has an minimized handle to allow expanding.
|
|
#define | CUI_MINIMIZED_DOCK (1<<12) |
CUI frmaes are minimized docked.
|
|
#define | CUI_NO_PANEL 0 |
#define | CUI_TOP_PANEL CUI_TOP_DOCK |
#define | CUI_BOTTOM_PANEL CUI_BOTTOM_DOCK |
#define | CUI_LEFT_PANEL CUI_LEFT_DOCK |
#define | CUI_RIGHT_PANEL CUI_RIGHT_DOCK |
#define | CUI_FIXED_PANELS (CUI_TOP_PANEL|CUI_BOTTOM_PANEL|CUI_LEFT_PANEL|CUI_RIGHT_PANEL) |
#define | CUI_FLOATING_PANELS (1<<4) |
#define | CUI_ALL_PANELS (CUI_FIXED_PANELS|CUI_FLOATING_PANELS) |
#define | CUI_POSDATA_MSG (WM_APP + 0x3412) |
used for retrieving CUIFrame position data
|
|
#define | CUI_SUBFRAME_ADDED_MSG (WM_APP + 0x3413) |
tells a parent window that an ICUIFrame has been added
|
|
#define | CUI_SUBFRAME_REMOVED_MSG (WM_APP + 0x3414) |
tells a parent window that an ICUIFrame has been removed
|
|
#define | CUI_PRESET_MACROBUTTONS (WM_APP + 0x3415) |
Set MacroButtonStates is about to be called
on the toolbar. |
|
#define | CUI_SUBFRAME_ACTIVATE_MSG (WM_APP + 0x3416) |
tells a parent window that a subframe's
active state has changed |
|
#define | CUI_NONE 0 |
#define | CUI_HORIZ CUI_HORIZ_DOCK |
Docked horizontally.
|
|
#define | CUI_VERT CUI_VERT_DOCK |
Docked vertically.
|
|
#define | CUI_FLOAT CUI_FLOATING |
Floating.
|
|
#define | CUI_MIN_TB_WIDTH 25 |
#define | CUI_MENU_HIDE 0 |
#define | CUI_MENU_SHOW_ENABLED 1 |
#define | CUI_MENU_SHOW_DISABLED 2 |
#define | CUI_MIN_SIZE 0 |
The minimum size.
|
|
#define | CUI_MAX_SIZE 1 |
The maximum size.
|
|
#define | CUI_PREF_SIZE 2 |
3ds Max does not currently take advantage of
this size, only MIN and MAX are used.
|
|
#define | CUI_SIZE_16 16 |
#define | CUI_SIZE_24 24 |
#define | CUI_MASK_NONE 0 |
#define | CUI_MASK_MONO 1 |
#define | CUI_MASK_ALPHA 2 |
#define | CUI_MASK_ALPHA_PREMULT 3 |
#define | CUI_EDIT_NONE 0 |
#define | CUI_EDIT_KBD (1<<0) |
#define | CUI_EDIT_SCRIPT (1<<1) |
#define | CUI_EDIT_MACRO (CUI_EDIT_KBD | CUI_EDIT_SCRIPT) |
#define | CUI_EDIT_ORDER (1<<2) |
#define | CUI_MODE_NORMAL 0 |
#define | CUI_MODE_EDIT 1 |
#define | MB_TYPE_KBD 1 |
#define | MB_TYPE_SCRIPT 2 |
#define | MB_TYPE_ACTION 3 |
#define | MB_TYPE_ACTION_CUSTOM 4 |
#define | MB_FLAG_ENABLED (1 << 0) |
#define | MB_FLAG_CHECKED (1 << 1) |
#define | SPINNERWINDOWCLASS _M("SpinnerControl") |
#define | CC_SPINNER_CHANGE WM_USER + 600 |
#define | CC_SPINNER_BUTTONDOWN WM_USER + 601 |
#define | CC_SPINNER_BUTTONUP WM_USER + 602 |
#define | SPINNER_WRAP_DISTANCE 40 |
#define | SLIDERWINDOWCLASS _M("SliderControl") |
#define | CC_SLIDER_CHANGE WM_USER + 611 |
#define | CC_SLIDER_BUTTONDOWN WM_USER + 612 |
#define | CC_SLIDER_BUTTONUP WM_USER + 613 |
#define | WM_CUSTROLLUP_RECALCLAYOUT WM_USER+876 |
#define | ROLLUPWINDOWCLASS _M("RollupWindow") |
#define | APPENDROLL_CLOSED (1<<0) |
#define | DONTAUTOCLOSE (1<<1) |
#define | ROLLUP_SAVECAT (1<<2) |
#define | ROLLUP_USEREPLACEDCAT (1<<3) |
#define | ROLLUP_NOBORDER (1<<4) |
#define | CUSTEDITWINDOWCLASS _M("CustEdit") |
#define | WM_CUSTEDIT_ENTER (WM_USER+685) |
#define | CUSTSTATUSEDITWINDOWCLASS _M("CustStatusEdit") |
#define | CUSTBUTTONWINDOWCLASS _M("CustButton") |
#define | CC_COMMAND WM_USER + 700 |
#define | CC_CMD_SET_TYPE 23 |
#define | CC_CMD_SET_STATE 24 |
#define | CC_CMD_HILITE_COLOR 25 |
#define | RED_WASH RGB(255,192,192) |
#define | GREEN_WASH (ColorMan()->GetColor(kActiveCommand)) |
#define | BLUE_WASH (ColorMan()->GetColor(kPressedHierarchyButton)) |
#define | SUBOBJ_COLOR (ColorMan()->GetColor(kSubObjectColor)) |
#define | BN_BUTTONDOWN 8173 |
#define | BN_BUTTONUP 8174 |
#define | BN_RIGHTCLICK 8183 |
#define | BN_FLYOFF 8187 |
#define | CMF_TOOLBUTTON 9274 |
#define | FLY_VARIABLE 1 |
#define | FLY_UP 2 |
#define | FLY_DOWN 3 |
#define | FLY_HVARIABLE 4 |
#define | FLY_LEFT 5 |
#define | FLY_RIGHT 6 |
#define | CUSTSTATUSWINDOWCLASS _M("CustStatus") |
#define | CUSTSEPARATORWINDOWCLASS _M("CustSeparator") |
#define | CUSTTOOLBARWINDOWCLASS _M("CustToolbar") |
#define | TB_RIGHTCLICK 0x2861 |
#define | CTB_NONE CUI_NONE |
#define | CTB_HORIZ CUI_HORIZ |
#define | CTB_VERT CUI_VERT |
#define | CTB_FLOAT CUI_FLOAT |
#define | CENTER_TOOL_VERTICALLY 0xffffffff |
#define | CUSTIMAGEWINDOWCLASS _M("CustImage") |
#define | CC_COLOR_CHANGE WM_USER + 603 |
#define | CC_COLOR_BUTTONDOWN WM_USER + 606 |
#define | CC_COLOR_BUTTONUP WM_USER + 607 |
#define | CC_COLOR_SEL WM_USER + 604 |
#define | CC_COLOR_DROP WM_USER + 605 |
#define | CC_COLOR_CLOSE WM_USER + 608 |
#define | COLORSWATCHWINDOWCLASS _M("ColorSwatch") |
#define | COLOR_SWATCH_RENAMER_INTERFACE_51 Interface_ID(0x5a684953, 0x1fc043dc) |
#define | DADWINDOWCLASS _M("DragDropWindow") |
Typedefs |
|
typedef void * | RollupState |
typedef LRESULT CALLBACK | PaintProc (HDC hdc, Rect rect, BOOL in, BOOL checked, BOOL enabled) |
typedef LRESULT CALLBACK | WindowProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
Enumerations |
|
enum | EditSpinnerType
{ EDITTYPE_INT, EDITTYPE_FLOAT, EDITTYPE_UNIVERSE, EDITTYPE_POS_INT, EDITTYPE_POS_FLOAT, EDITTYPE_POS_UNIVERSE, EDITTYPE_TIME } |
enum | CustButType { CBT_PUSH, CBT_CHECK } |
enum | StatusTextFormat { STATUSTEXT_LEFT, STATUSTEXT_CENTERED, STATUSTEXT_RIGHT } |
enum | ToolItemType
{ CTB_PUSHBUTTON, CTB_CHECKBUTTON, CTB_MACROBUTTON, CTB_SEPARATOR, CTB_STATUS, CTB_OTHER } |
Functions |
|
CoreExport HBRUSH | GetLTGrayBrush () |
CoreExport HBRUSH | GetDKGrayBrush () |
CoreExport void | MakeBrushesSolid (BOOL onOff) |
CoreExport HFONT | GetFixedFont () |
Return the fixed font used by 3ds Max.
|
|
CoreExport HFONT | GetFixedFont_LocalCharSet () |
Return the fixed font used by 3ds Max, based
on the 3ds Max's language and character set. For internal use only.
|
|
CoreExport HFONT | GetFixedFontBold () |
Return the fixed bold font used by 3ds Max.
|
|
CoreExport HFONT | GetFixedFontBold_LocalCharSet () |
Return the fixed bold font used by 3ds Max,
based on the 3ds Max's language and character set. For internal use
only.
|
|
CoreExport LONG | GetFixedFontHeight () |
Returns the height of the fixed font used by
3ds Max.
|
|
CoreExport LONG | GetFixedFontHeightSmall () |
Returns the height of the small fixed font
used by 3ds Max.
|
|
CoreExport DWORD | GetFixedFontCharset () |
Returns the fixed font character set for the
language currently used by 3ds Max.
|
|
CoreExport char * | GetFixedFontFace () |
Returns the font face string for the fixed
font used by 3ds Max.
|
|
CoreExport HFONT | GetUIFont () |
Return the standard font used in 3ds Max's
user interface. |
|
CoreExport HFONT | GetUIFont_LocalCharSet () |
Return the standard font used in 3ds Max's
user interface, depending on the language and charset. For internal
use only. |
|
CoreExport HFONT | GetUIFontBold () |
Return the standard bold font used in 3ds
Max's user interface. |
|
CoreExport HFONT | GetUIFontBold_LocalCharSet () |
Return the standard bold font used in 3ds
Max's user interface, depending on the language and charset. For
internal use only. |
|
CoreExport LONG | GetUIFontHeight () |
Returns the height of standard font which
used in 3ds Max's user interface. |
|
CoreExport LONG | GetUIFontHeightSmall () |
Returns the height of small font which used
in 3ds Max's user interface. |
|
CoreExport DWORD | GetUIFontCharset () |
Returns character set for the current
language used in 3ds Max's user interface. |
|
CoreExport const MCHAR * | GetUIFontFace () |
Returns the font face string for the
standard font used in 3ds Max's user interface. |
|
CoreExport HCURSOR | GetPanCursor () |
CoreExport void | UpdateButtonOutlines () |
CoreExport ICUIFrame * | GetICUIFrame (HWND hCtrl) |
CoreExport void | ReleaseICUIFrame (ICUIFrame *icf) |
CoreExport HWND | CreateCUIFrameWindow (HWND hParent, const MCHAR *title, int x, int y, int cx, int cy) |
CoreExport CUIFrameMgr * | GetCUIFrameMgr () |
CoreExport void | DoCUICustomizeDialog () |
CoreExport BOOL | AllFloatersAreHidden () |
CoreExport void | ResizeFloatingTB (HWND hWnd) |
CoreExport ISpinnerControl * | GetISpinner (HWND hCtrl) |
CoreExport void | ReleaseISpinner (ISpinnerControl *isc) |
CoreExport void | SetSnapSpinner (BOOL b) |
CoreExport BOOL | GetSnapSpinner () |
CoreExport void | SetSnapSpinValue (float f) |
CoreExport float | GetSnapSpinValue () |
CoreExport void | SetSpinnerPrecision (int p) |
CoreExport int | GetSpinnerPrecision () |
CoreExport void | SetSpinnerWrap (int w) |
CoreExport int | GetSpinnerWrap () |
CoreExport ISliderControl * | GetISlider (HWND hCtrl) |
CoreExport void | ReleaseISlider (ISliderControl *isc) |
CoreExport ISliderControl * | SetupIntSlider (HWND hwnd, int idSlider, int idEdit, int min, int max, int val, int numSegs) |
CoreExport ISliderControl * | SetupFloatSlider (HWND hwnd, int idSlider, int idEdit, float min, float max, float val, int numSegs) |
CoreExport ISliderControl * | SetupUniverseSlider (HWND hwnd, int idSlider, int idEdit, float min, float max, float val, int numSegs) |
CoreExport void | SetSliderDragNotify (BOOL onOff) |
CoreExport BOOL | GetSliderDragNotify () |
CoreExport BOOL | IsRollupPanelOpen (HWND hDlg) |
CoreExport IRollupWindow * | GetIRollup (HWND hCtrl) |
CoreExport void | ReleaseIRollup (IRollupWindow *irw) |
CoreExport ICustEdit * | GetICustEdit (HWND hCtrl) |
CoreExport void | ReleaseICustEdit (ICustEdit *ice) |
CoreExport ICustStatusEdit * | GetICustStatusEdit (HWND hCtrl) |
CoreExport void | ReleaseICustStatusEdit (ICustStatusEdit *ice) |
CoreExport ICustButton * | GetICustButton (HWND hCtrl) |
CoreExport void | ReleaseICustButton (ICustButton *icb) |
CoreExport ICustStatus * | GetICustStatus (HWND hCtrl) |
CoreExport void | ReleaseICustStatus (ICustStatus *ics) |
CoreExport ICustSeparator * | GetICustSeparator (HWND hCtrl) |
CoreExport void | ReleaseICustSeparator (ICustSeparator *ics) |
CoreExport ICustToolbar * | GetICustToolbar (HWND hCtrl) |
CoreExport void | ReleaseICustToolbar (ICustToolbar *ict) |
CoreExport ICustImage * | GetICustImage (HWND hCtrl) |
CoreExport void | ReleaseICustImage (ICustImage *ici) |
CoreExport IOffScreenBuf * | CreateIOffScreenBuf (HWND hWnd) |
CoreExport void | DestroyIOffScreenBuf (IOffScreenBuf *iBuf) |
CoreExport IColorSwatch * | GetIColorSwatch (HWND hCtrl, COLORREF col, const MCHAR *name) |
CoreExport IColorSwatch * | GetIColorSwatch (HWND hCtrl, Color col, const MCHAR *name) |
CoreExport IColorSwatch * | GetIColorSwatch (HWND hCtrl, AColor col, const MCHAR *name) |
CoreExport IColorSwatch * | GetIColorSwatch (HWND hCtrl) |
CoreExport void | ReleaseIColorSwatch (IColorSwatch *ics) |
CoreExport void | RefreshAllColorSwatches () |
CoreExport IDADWindow * | GetIDADWindow (HWND hWnd) |
CoreExport void | ReleaseIDADWindow (IDADWindow *idw) |
CoreExport void | InstallThumbTack (HWND hwnd) |
This function installs a thumb tack in the
title bar of a window which forces the window to the top. |
|
CoreExport void | RemoveThumbTack (HWND hwnd) |
CoreExport ISpinnerControl * | SetupIntSpinner (HWND hwnd, int idSpin, int idEdit, int min, int max, int val) |
Handy routines for setting up Integer Spinners. |
|
CoreExport ISpinnerControl * | SetupFloatSpinner (HWND hwnd, int idSpin, int idEdit, float min, float max, float val, float scale=0.1f) |
Handy routines for setting up Floating Point
and Universe Spinners. |
|
CoreExport ISpinnerControl * | SetupUniverseSpinner (HWND hwnd, int idSpin, int idEdit, float min, float max, float val, float scale=0.1f) |
CoreExport void | SetSpinDragNotify (BOOL onOff) |
CoreExport BOOL | GetSpinDragNotify () |
CoreExport void | DisableAccelerators () |
CoreExport void | EnableAccelerators () |
CoreExport BOOL | AcceleratorsEnabled () |
CoreExport void | SetSaveRequiredFlag (BOOL requireSave=TRUE, BOOL requireAutoBackupSave=TRUE) |
Explicitly marks the scene as changed.
|
|
CoreExport BOOL | GetSaveRequiredFlag () |
Retrieves the internal save required flag.
|
|
CoreExport BOOL | IsSaveRequired () |
This tells if the scene needs to be saved.
|
|
CoreExport BOOL | IsAutoSaveRequired () |
This tells if the current scene needs to be
backed up. |
#define CHILDWND_CUI |
Definition at line 28 of file custcont.h.
#define I_EXEC_CB_NO_BORDER 0xA000 |
Pass this to CustButton::Execute() to turnoff borders, like in the toolbar.
Definition at line 36 of file custcont.h.
#define I_EXEC_CS_NO_BORDER 0xA001 |
Pass this to CustStatus::Execute() to turnoff borders, like in the toolbar.
Definition at line 38 of file custcont.h.
#define I_EXEC_SPINNER_RESET 0xA002 |
Set a spinner back to its Reset value.
Definition at line 40 of file custcont.h.
#define I_EXEC_SPINNER_IS_RESET_CHANGE 0xA003 |
When called during a CC_SPINNER_xxx messages, it will return true if the msg was triggered by a right-click reset.
Definition at line 44 of file custcont.h.
#define I_EXEC_SPINNER_ALT_DISABLE 0xA004 |
disable the alt key spinner behaviour
Definition at line 47 of file custcont.h.
#define I_EXEC_SPINNER_ALT_ENABLE 0xA005 |
enable the alt key spinner behaviour
Definition at line 49 of file custcont.h.
#define I_EXEC_SPINNER_ONE_CLICK_DISABLE 0xA006 |
disable the one click spinner behaviour with alt or ctrl down
Definition at line 51 of file custcont.h.
#define I_EXEC_SPINNER_ONE_CLICK_ENABLE 0xA007 |
enable the one click spinner behaviour with alt or ctrl down
Definition at line 53 of file custcont.h.
#define I_EXEC_BUTTON_DAD_ENABLE 0xA008 |
enable or disable button drag & drop within a toolbar
Definition at line 55 of file custcont.h.
#define I_EXEC_GET_TOOLTIP_HWND 0xA009 |
return the hwnd for the tooltip
Definition at line 57 of file custcont.h.
#define OWNER_MEDIT_SAMPLE 0 |
Definition at line 60 of file custcont.h.
#define OWNER_NODE 1 |
Definition at line 61 of file custcont.h.
#define OWNER_MTL_TEX 2 |
Definition at line 62 of file custcont.h.
#define OWNER_SCENE 3 |
Definition at line 63 of file custcont.h.
#define OWNER_BROWSE_NEW 4 |
Definition at line 64 of file custcont.h.
#define OWNER_BROWSE_LIB 5 |
Definition at line 65 of file custcont.h.
#define OWNER_BROWSE_MEDIT 6 |
Definition at line 66 of file custcont.h.
#define OWNER_BROWSE_SCENE 7 |
Definition at line 67 of file custcont.h.
#define OWNER_MATERIAL_EXPLORER 8 |
Definition at line 68 of file custcont.h.
#define CUIFRAMECLASS _M("CUIFrame") |
Definition at line 563 of file custcont.h.
#define CUI_TOOLBAR (1<<0) |
set if frame holds toolbars and/or tool palettes
Definition at line 566 of file custcont.h.
#define CUI_MENU (1<<1) |
#define CUI_HWND (1<<2) |
set if frame hold a generic hWnd
Definition at line 568 of file custcont.h.
#define CUI_POSDATA_MSG (WM_APP + 0x3412) |
used for retrieving CUIFrame position data
Definition at line 609 of file custcont.h.
#define CUI_SUBFRAME_ADDED_MSG (WM_APP + 0x3413) |
tells a parent window that an ICUIFrame has been added
Definition at line 610 of file custcont.h.
#define CUI_SUBFRAME_REMOVED_MSG (WM_APP + 0x3414) |
tells a parent window that an ICUIFrame has been removed
Definition at line 611 of file custcont.h.
#define CUI_PRESET_MACROBUTTONS (WM_APP + 0x3415) |
Set MacroButtonStates is about to be called on the toolbar.
Definition at line 612 of file custcont.h.
#define CUI_SUBFRAME_ACTIVATE_MSG (WM_APP + 0x3416) |
tells a parent window that a subframe's active state has changed
Definition at line 613 of file custcont.h.
#define CUI_MIN_TB_WIDTH 25 |
Definition at line 625 of file custcont.h.
#define CUI_MENU_HIDE 0 |
Definition at line 627 of file custcont.h.
#define CUI_MENU_SHOW_ENABLED 1 |
Definition at line 628 of file custcont.h.
#define CUI_MENU_SHOW_DISABLED 2 |
Definition at line 629 of file custcont.h.
#define CUI_SIZE_16 16 |
Definition at line 641 of file custcont.h.
#define CUI_SIZE_24 24 |
Definition at line 642 of file custcont.h.
#define CUI_MASK_NONE 0 |
Definition at line 645 of file custcont.h.
#define CUI_MASK_MONO 1 |
Definition at line 646 of file custcont.h.
#define CUI_MASK_ALPHA 2 |
Definition at line 647 of file custcont.h.
#define CUI_MASK_ALPHA_PREMULT 3 |
Definition at line 648 of file custcont.h.
#define CUI_EDIT_NONE 0 |
Definition at line 651 of file custcont.h.
#define CUI_EDIT_KBD (1<<0) |
Definition at line 652 of file custcont.h.
#define CUI_EDIT_SCRIPT (1<<1) |
Definition at line 653 of file custcont.h.
#define CUI_EDIT_MACRO (CUI_EDIT_KBD | CUI_EDIT_SCRIPT) |
Definition at line 654 of file custcont.h.
#define CUI_EDIT_ORDER (1<<2) |
Definition at line 655 of file custcont.h.
#define CUI_MODE_NORMAL 0 |
Definition at line 1003 of file custcont.h.
#define CUI_MODE_EDIT 1 |
Definition at line 1004 of file custcont.h.
#define MB_TYPE_KBD 1 |
Definition at line 1377 of file custcont.h.
#define MB_TYPE_SCRIPT 2 |
Definition at line 1378 of file custcont.h.
#define MB_TYPE_ACTION 3 |
Definition at line 1379 of file custcont.h.
#define MB_TYPE_ACTION_CUSTOM 4 |
Definition at line 1380 of file custcont.h.
#define MB_FLAG_ENABLED (1 << 0) |
Definition at line 1382 of file custcont.h.
#define MB_FLAG_CHECKED (1 << 1) |
Definition at line 1383 of file custcont.h.
#define SPINNERWINDOWCLASS _M("SpinnerControl") |
Definition at line 1546 of file custcont.h.
#define CC_SPINNER_CHANGE WM_USER + 600 |
Definition at line 1552 of file custcont.h.
#define CC_SPINNER_BUTTONDOWN WM_USER + 601 |
Definition at line 1556 of file custcont.h.
#define CC_SPINNER_BUTTONUP WM_USER + 602 |
Definition at line 1561 of file custcont.h.
#define SPINNER_WRAP_DISTANCE 40 |
Definition at line 1821 of file custcont.h.
#define SLIDERWINDOWCLASS _M("SliderControl") |
Definition at line 1830 of file custcont.h.
#define CC_SLIDER_CHANGE WM_USER + 611 |
Definition at line 1835 of file custcont.h.
#define CC_SLIDER_BUTTONDOWN WM_USER + 612 |
Definition at line 1839 of file custcont.h.
#define CC_SLIDER_BUTTONUP WM_USER + 613 |
Definition at line 1844 of file custcont.h.
#define WM_CUSTROLLUP_RECALCLAYOUT WM_USER+876 |
Definition at line 2133 of file custcont.h.
#define ROLLUPWINDOWCLASS _M("RollupWindow") |
Definition at line 2135 of file custcont.h.
#define APPENDROLL_CLOSED (1<<0) |
Definition at line 2140 of file custcont.h.
#define DONTAUTOCLOSE (1<<1) |
Definition at line 2141 of file custcont.h.
#define ROLLUP_SAVECAT (1<<2) |
Definition at line 2142 of file custcont.h.
#define ROLLUP_USEREPLACEDCAT (1<<3) |
Definition at line 2143 of file custcont.h.
#define ROLLUP_NOBORDER (1<<4) |
Definition at line 2144 of file custcont.h.
#define CUSTEDITWINDOWCLASS _M("CustEdit") |
Definition at line 2670 of file custcont.h.
#define WM_CUSTEDIT_ENTER (WM_USER+685) |
Definition at line 2675 of file custcont.h.
#define CUSTSTATUSEDITWINDOWCLASS _M("CustStatusEdit") |
Definition at line 2846 of file custcont.h.
#define CUSTBUTTONWINDOWCLASS _M("CustButton") |
Definition at line 3007 of file custcont.h.
#define CC_COMMAND WM_USER + 700 |
Definition at line 3009 of file custcont.h.
#define CC_CMD_SET_TYPE 23 |
Definition at line 3011 of file custcont.h.
#define CC_CMD_SET_STATE 24 |
Definition at line 3012 of file custcont.h.
#define CC_CMD_HILITE_COLOR 25 |
Definition at line 3013 of file custcont.h.
#define RED_WASH RGB(255,192,192) |
Definition at line 3015 of file custcont.h.
#define GREEN_WASH (ColorMan()->GetColor(kActiveCommand)) |
Definition at line 3016 of file custcont.h.
#define BLUE_WASH (ColorMan()->GetColor(kPressedHierarchyButton)) |
Definition at line 3017 of file custcont.h.
#define SUBOBJ_COLOR (ColorMan()->GetColor(kSubObjectColor)) |
Definition at line 3018 of file custcont.h.
#define BN_BUTTONDOWN 8173 |
Definition at line 3024 of file custcont.h.
#define BN_BUTTONUP 8174 |
Definition at line 3027 of file custcont.h.
#define BN_RIGHTCLICK 8183 |
Definition at line 3031 of file custcont.h.
#define BN_FLYOFF 8187 |
Definition at line 3034 of file custcont.h.
#define CMF_TOOLBUTTON 9274 |
Definition at line 3040 of file custcont.h.
#define FLY_VARIABLE 1 |
Definition at line 3076 of file custcont.h.
#define FLY_UP 2 |
Definition at line 3077 of file custcont.h.
#define FLY_DOWN 3 |
Definition at line 3078 of file custcont.h.
#define FLY_HVARIABLE 4 |
Definition at line 3079 of file custcont.h.
#define FLY_LEFT 5 |
Definition at line 3080 of file custcont.h.
#define FLY_RIGHT 6 |
Definition at line 3081 of file custcont.h.
#define CUSTSTATUSWINDOWCLASS _M("CustStatus") |
Definition at line 3338 of file custcont.h.
#define CUSTSEPARATORWINDOWCLASS _M("CustSeparator") |
Definition at line 3426 of file custcont.h.
#define CUSTTOOLBARWINDOWCLASS _M("CustToolbar") |
Definition at line 3477 of file custcont.h.
#define TB_RIGHTCLICK 0x2861 |
Definition at line 3486 of file custcont.h.
#define CTB_NONE CUI_NONE |
Definition at line 3505 of file custcont.h.
#define CTB_HORIZ CUI_HORIZ |
Definition at line 3506 of file custcont.h.
#define CTB_VERT CUI_VERT |
Definition at line 3507 of file custcont.h.
#define CTB_FLOAT CUI_FLOAT |
Definition at line 3508 of file custcont.h.
#define CENTER_TOOL_VERTICALLY 0xffffffff |
Definition at line 3785 of file custcont.h.
#define CUSTIMAGEWINDOWCLASS _M("CustImage") |
Definition at line 4236 of file custcont.h.
#define CC_COLOR_CHANGE WM_USER + 603 |
Definition at line 4375 of file custcont.h.
#define CC_COLOR_BUTTONDOWN WM_USER + 606 |
Definition at line 4379 of file custcont.h.
#define CC_COLOR_BUTTONUP WM_USER + 607 |
Definition at line 4384 of file custcont.h.
#define CC_COLOR_SEL WM_USER + 604 |
Definition at line 4391 of file custcont.h.
#define CC_COLOR_DROP WM_USER + 605 |
Definition at line 4399 of file custcont.h.
#define CC_COLOR_CLOSE WM_USER + 608 |
Definition at line 4409 of file custcont.h.
#define COLORSWATCHWINDOWCLASS _M("ColorSwatch") |
Definition at line 4412 of file custcont.h.
#define COLOR_SWATCH_RENAMER_INTERFACE_51 Interface_ID(0x5a684953, 0x1fc043dc) |
Definition at line 4584 of file custcont.h.
#define DADWINDOWCLASS _M("DragDropWindow") |
Definition at line 4639 of file custcont.h.
typedef void* RollupState |
Definition at line 2137 of file custcont.h.
Definition at line 3083 of file custcont.h.
typedef LRESULT CALLBACK WindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
Definition at line 4641 of file custcont.h.
enum EditSpinnerType |
EDITTYPE_INT | |
EDITTYPE_FLOAT | |
EDITTYPE_UNIVERSE | |
EDITTYPE_POS_INT | |
EDITTYPE_POS_FLOAT | |
EDITTYPE_POS_UNIVERSE | |
EDITTYPE_TIME |
Definition at line 1564 of file custcont.h.
enum CustButType |
Definition at line 3020 of file custcont.h.
enum StatusTextFormat |
Definition at line 3340 of file custcont.h.
CoreExport HBRUSH GetLTGrayBrush | ( | ) |
CoreExport HBRUSH GetDKGrayBrush | ( | ) |
CoreExport void MakeBrushesSolid | ( | BOOL | onOff | ) |
CoreExport HCURSOR GetPanCursor | ( | ) |
CoreExport void UpdateButtonOutlines | ( | ) |
CoreExport ICUIFrame* GetICUIFrame | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICUIFrame | ( | ICUIFrame * | icf | ) |
icf | Points to the control to release. |
CoreExport HWND CreateCUIFrameWindow | ( | HWND | hParent, |
const MCHAR * | title, | ||
int | x, | ||
int | y, | ||
int | cx, | ||
int | cy | ||
) |
hParent | handle of the parent window for the frame. |
title | title for the frame. This effectively calls SetName() below to establish a name for the frame. |
x | x coordinate of the upper left corner. |
y | y coordinate of the upper left corner. |
cx | x size. |
cy | y size. |
CoreExport CUIFrameMgr* GetCUIFrameMgr | ( | ) |
CoreExport void DoCUICustomizeDialog | ( | ) |
CoreExport BOOL AllFloatersAreHidden | ( | ) |
CoreExport void ResizeFloatingTB | ( | HWND | hWnd | ) |
CoreExport ISpinnerControl* GetISpinner | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseISpinner | ( | ISpinnerControl * | isc | ) |
isc | Points to the control to release. |
CoreExport void SetSnapSpinner | ( | BOOL | b | ) |
CoreExport BOOL GetSnapSpinner | ( | ) |
CoreExport void SetSnapSpinValue | ( | float | f | ) |
CoreExport float GetSnapSpinValue | ( | ) |
CoreExport void SetSpinnerPrecision | ( | int | p | ) |
CoreExport int GetSpinnerPrecision | ( | ) |
CoreExport void SetSpinnerWrap | ( | int | w | ) |
CoreExport int GetSpinnerWrap | ( | ) |
CoreExport ISliderControl* GetISlider | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseISlider | ( | ISliderControl * | isc | ) |
isc | Points to the control to release. |
CoreExport ISliderControl* SetupIntSlider | ( | HWND | hwnd, |
int | idSlider, | ||
int | idEdit, | ||
int | min, | ||
int | max, | ||
int | val, | ||
int | numSegs | ||
) |
CoreExport ISliderControl* SetupFloatSlider | ( | HWND | hwnd, |
int | idSlider, | ||
int | idEdit, | ||
float | min, | ||
float | max, | ||
float | val, | ||
int | numSegs | ||
) |
CoreExport ISliderControl* SetupUniverseSlider | ( | HWND | hwnd, |
int | idSlider, | ||
int | idEdit, | ||
float | min, | ||
float | max, | ||
float | val, | ||
int | numSegs | ||
) |
CoreExport void SetSliderDragNotify | ( | BOOL | onOff | ) |
CoreExport BOOL GetSliderDragNotify | ( | ) |
CoreExport BOOL IsRollupPanelOpen | ( | HWND | hDlg | ) |
CoreExport IRollupWindow* GetIRollup | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseIRollup | ( | IRollupWindow * | irw | ) |
irw | Points to the control to release. |
CoreExport ICustEdit* GetICustEdit | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustEdit | ( | ICustEdit * | ice | ) |
ice | Points to the control to release. |
CoreExport ICustStatusEdit* GetICustStatusEdit | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustStatusEdit | ( | ICustStatusEdit * | ice | ) |
ice | Points to the control to release. |
CoreExport ICustButton* GetICustButton | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustButton | ( | ICustButton * | icb | ) |
icb | Points to the control to release. |
CoreExport ICustStatus* GetICustStatus | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustStatus | ( | ICustStatus * | ics | ) |
ics | Points to the control to release. |
CoreExport ICustSeparator* GetICustSeparator | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustSeparator | ( | ICustSeparator * | ics | ) |
ics | Points to the control to release. |
CoreExport ICustToolbar* GetICustToolbar | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustToolbar | ( | ICustToolbar * | ict | ) |
ict | Points to the control to release. |
CoreExport ICustImage* GetICustImage | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseICustImage | ( | ICustImage * | ici | ) |
ici | Points to the control to release. |
CoreExport IOffScreenBuf* CreateIOffScreenBuf | ( | HWND | hWnd | ) |
CoreExport void DestroyIOffScreenBuf | ( | IOffScreenBuf * | iBuf | ) |
CoreExport IColorSwatch* GetIColorSwatch | ( | HWND | hCtrl, |
COLORREF | col, | ||
const MCHAR * | name | ||
) |
hCtrl | window handle of the control. |
col | sets the initial color selected. |
name | sets the text string displayed in the title bar of the selection dialog. |
CoreExport IColorSwatch* GetIColorSwatch | ( | HWND | hCtrl, |
Color | col, | ||
const MCHAR * | name | ||
) |
hCtrl | window handle of the control. |
col | sets the initial color selected. |
name | sets the text string displayed in the title bar of the selection dialog. |
CoreExport IColorSwatch* GetIColorSwatch | ( | HWND | hCtrl, |
AColor | col, | ||
const MCHAR * | name | ||
) |
hCtrl | window handle of the control. |
col | sets the initial color selected. |
name | sets the text string displayed in the title bar of the selection dialog. |
CoreExport IColorSwatch* GetIColorSwatch | ( | HWND | hCtrl | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseIColorSwatch | ( | IColorSwatch * | ics | ) |
ice | Points to the control to release. |
CoreExport void RefreshAllColorSwatches | ( | ) |
CoreExport IDADWindow* GetIDADWindow | ( | HWND | hWnd | ) |
hCtrl | window handle of the control. |
CoreExport void ReleaseIDADWindow | ( | IDADWindow * | idw | ) |
idw | Points to the control to release. |
CoreExport void InstallThumbTack | ( | HWND | hwnd | ) |
This function installs a thumb tack in the title bar of a window which forces the window to the top.
The window class for the window should have 4 extra bytes in the window structure for SetWindowLongPtr().
CoreExport void RemoveThumbTack | ( | HWND | hwnd | ) |
CoreExport ISpinnerControl* SetupIntSpinner | ( | HWND | hwnd, |
int | idSpin, | ||
int | idEdit, | ||
int | min, | ||
int | max, | ||
int | val | ||
) |
Handy routines for setting up Integer Spinners.
This global function (not part of class ISpinnerControl) is used for setting up Spinners. It performs the equivalent of GetISpinner(), SetLimits(), SetValue(), and LinkToEdit(). WARNING: To prevent a Memory Leak, be sure to call ReleaseISpinner on the pointer that this function returns, or use AutoPtr and ISpinnerControlDestructorPolicy
HWND | hwnd - The handle of the dialog box in which the spinner appears. |
int | idSpin - The ID of the spinner. |
int | idEdit - The ID of the edit control. |
int | min - The minimum allowable value. |
int | max - The maximum allowable value. |
int | val - The initial value for the spinner. |
CoreExport ISpinnerControl* SetupFloatSpinner | ( | HWND | hwnd, |
int | idSpin, | ||
int | idEdit, | ||
float | min, | ||
float | max, | ||
float | val, | ||
float | scale = 0.1f |
||
) |
Handy routines for setting up Floating Point and Universe Spinners.
This global function (not part of class ISpinnerControl) is used for setting up Spinners. Internally it calls the GetISpinner(), SetLimits(), SetValue() and LinkToEdit() functions. WARNING: To prevent a Memory Leak, be sure to call ReleaseISpinner on the pointer that this function returns, or use AutoPtr and ISpinnerControlDestructorPolicy
HWND | hwnd - The handle of the dialog box in which the spinner appears. |
int | idSpin - The ID of the spinner. |
int | idEdit - The ID of the edit control. |
float | min - The minimum allowable value. |
float | max - The maximum allowable value. |
float | val - The initial value for the spinner. |
float | scale = 0.1f - The initial scale value for the spinner. |
ISpinnerControl* spin = GetISpinner(GetDlgItem(hDlg, IDC_SPIN_SPINNER)); spin->SetLimits(0.0f, 100.0f, FALSE); spin->SetValue(100.0f, FALSE); spin->LinkToEdit(GetDlgItem(hDlg, IDC_SPIN_EDIT), EDITTYPE_FLOAT); ReleaseISpinner(spin);
ISpinnerControl* spin = SetupFloatSpinner(hDlg, IDC_SPIN_SPINNER, IDC_SPIN_EDIT, 0.0f, 100.0f, 100.0f); ReleaseISpinner(spin);
CoreExport ISpinnerControl* SetupUniverseSpinner | ( | HWND | hwnd, |
int | idSpin, | ||
int | idEdit, | ||
float | min, | ||
float | max, | ||
float | val, | ||
float | scale = 0.1f |
||
) |
CoreExport void SetSpinDragNotify | ( | BOOL | onOff | ) |
CoreExport BOOL GetSpinDragNotify | ( | ) |
CoreExport void DisableAccelerators | ( | ) |
CoreExport void EnableAccelerators | ( | ) |
CoreExport BOOL AcceleratorsEnabled | ( | ) |
CoreExport void SetSaveRequiredFlag | ( | BOOL | requireSave =
TRUE , |
BOOL | requireAutoBackupSave =
TRUE |
||
) |
Explicitly marks the scene as changed.
Some operations/commands are not undoable, but they do change the scene and as a result the scene should be saved or back-ed up after an autosave time interval elapsed. Such operations/commands must set the "save-required" and "auto-backup-required" flags explicitly by calling this method. Plugins should essentially never set the "auto-backup_required" flag to false.
requireSave | - If TRUE the scene will be considered changed since it's been saved last time; otherwise the scene is considered changed if at least one undoable operation has occurred since it was last saved |
requireAutoBackupSave | - If TRUE the scene will be considered as requiring to be backed-up; otherwise the scene is considered as requiring a backup if at least one undoable operation has occurred since it was last back-ed up |
CoreExport BOOL GetSaveRequiredFlag | ( | ) |
Retrieves the internal save required flag.
CoreExport BOOL IsSaveRequired | ( | ) |
This tells if the scene needs to be saved.
Whenever an undoable operation is executed (by the user or otherwise), or SetSaveRequiredFlag is called with TRUE as its first parameter, the scene is considered different than its most recently saved version.
CoreExport BOOL IsAutoSaveRequired | ( | ) |
This tells if the current scene needs to be backed up.
An autosave is required when (a) something has changed in the scene (a save is required) and (b) no autosave has been performed since the last scene change. The second condition (b) guarantees that the scene is backed up only once when a 3ds Max session is left unattended for a time that spans several autosave (autobackup) time intervals.