#include <maxapi.h>
class TestViewWindow : public ViewWindow { const MCHAR *GetName() { return _M("TestViewWindow"); } HWND CreateViewWindow(HWND hParent, int x, int y, int w, int h); void DestroyViewWindow(HWND hWnd); }; HWND TestViewWindow::CreateViewWindow(HWND hParent, int x, int y, int w, int h) { return CreateWindow("button", "Test Button", WS_VISIBLE | WS_CHILD, x, y, w, h, hParent, NULL, (HINSTANCE)GetWindowLong(hParent, GWL_HINSTANCE), NULL); } void TestViewWindow::DestroyViewWindow(HWND hWnd) { DestroyWindow(hWnd); } static TestViewWindow tvw;
Public Member Functions |
|
| virtual const MCHAR * | GetName ()=0 |
| virtual HWND | CreateViewWindow (HWND hParent, int x, int y, int w, int h)=0 |
| virtual void | DestroyViewWindow (HWND hWnd)=0 |
| virtual BOOL | CanCreate () |
| virtual int | NumberCanCreate () |
| virtual ViewWindowMetaData | GetMetaData ()=0 |
| virtual Class_ID | ClassID () const =0 |
| virtual const MCHAR* GetName | ( | ) | [pure virtual] |
Implemented in ListenerViewWindow.
| virtual HWND CreateViewWindow | ( | HWND | hParent, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | [pure virtual] |
Implemented in ListenerViewWindow.
| virtual void DestroyViewWindow | ( | HWND | hWnd | ) | [pure virtual] |
Implemented in ListenerViewWindow.
| virtual BOOL CanCreate | ( | ) | [inline, virtual] |
Reimplemented in ListenerViewWindow.
{ return TRUE; }
| virtual int NumberCanCreate | ( | ) | [inline, virtual] |
{ return -1; }
| virtual ViewWindowMetaData GetMetaData | ( | ) | [pure virtual] |
Implemented in ListenerViewWindow.
| virtual Class_ID ClassID | ( | ) | const [pure virtual] |
Implemented in ListenerViewWindow.