3ds Max C++ API Reference
ScriptEditor Class Reference

#include <scripteditor.h>

Public Member Functions

 ScriptEditor (const MCHAR *ititle=NULL)
 
virtual ScripterExport ~ScriptEditor ()
 
virtual LRESULT APIENTRY proc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
virtual ScripterExport HWND DisplayWindow (HWND hParent=NULL)
 
virtual ScripterExport void CloseWindow (bool notify=false)
 
virtual ScripterExport const MCHARGetEditScript ()
 
virtual ScripterExport void SetEditScript (const MCHAR *script)
 
virtual ScripterExport void SetTitle (const MCHAR *t)
 
virtual ScripterExport bool OnFileOpen (HWND hwnd)
 
virtual ScripterExport bool OnClose (HWND hwnd)
 
virtual const MCHARGetTitle ()
 
virtual ValueGetValueTitle ()
 
virtual bool OnExecute (HWND hwnd)
 return false to default handling More...
 
virtual bool IsDisplayed ()
 
virtual IntTabGetDisabledMenuTab ()
 

Protected Attributes

WNDPROC originalWndProc
 
IntTab disable_menus
 
edit_windowew
 
HWND hScript
 

Constructor & Destructor Documentation

◆ ScriptEditor()

ScriptEditor ( const MCHAR ititle = NULL)
inline
30  :
31  title(ititle),
32  ew(NULL),
33  hScript(NULL) { }
#define NULL
Definition: autoptr.h:18
HWND hScript
Definition: scripteditor.h:27
edit_window * ew
Definition: scripteditor.h:26

◆ ~ScriptEditor()

virtual ScripterExport ~ScriptEditor ( )
virtual

Member Function Documentation

◆ proc()

virtual LRESULT APIENTRY proc ( HWND  hwnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
inlinevirtual
37  {
38  return CallWindowProc(originalWndProc, hwnd, uMsg, wParam, lParam);
39  }
WNDPROC originalWndProc
Definition: scripteditor.h:24

◆ DisplayWindow()

virtual ScripterExport HWND DisplayWindow ( HWND  hParent = NULL)
virtual

◆ CloseWindow()

virtual ScripterExport void CloseWindow ( bool  notify = false)
virtual

◆ GetEditScript()

virtual ScripterExport const MCHAR* GetEditScript ( )
virtual

◆ SetEditScript()

virtual ScripterExport void SetEditScript ( const MCHAR script)
virtual

◆ SetTitle()

virtual ScripterExport void SetTitle ( const MCHAR t)
inlinevirtual
45 { title = t; }

◆ OnFileOpen()

virtual ScripterExport bool OnFileOpen ( HWND  hwnd)
virtual

◆ OnClose()

virtual ScripterExport bool OnClose ( HWND  hwnd)
virtual

◆ GetTitle()

virtual const MCHAR* GetTitle ( )
inlinevirtual
49 { return title; }

◆ GetValueTitle()

virtual Value* GetValueTitle ( )
inlinevirtual
50 { return (ew) ? ew->file_name : NULL; }
Value * file_name
Definition: listener.h:151

◆ OnExecute()

virtual bool OnExecute ( HWND  hwnd)
inlinevirtual

return false to default handling

52 { UNUSED_PARAM(hwnd); return false; }
#define UNUSED_PARAM(x)
Definition: BuildWarnings.h:18

◆ IsDisplayed()

virtual bool IsDisplayed ( )
inlinevirtual
53 { return ew!=NULL; }

◆ GetDisabledMenuTab()

virtual IntTab& GetDisabledMenuTab ( )
inlinevirtual
54 { return disable_menus; }
IntTab disable_menus
Definition: scripteditor.h:25

Member Data Documentation

◆ originalWndProc

WNDPROC originalWndProc
protected

◆ disable_menus

IntTab disable_menus
protected

◆ ew

edit_window* ew
protected

◆ hScript

HWND hScript
protected