class TestViewWindow : public ViewWindow { 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;
#include <maxapi.h>

Public Member Functions |
|
| virtual 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 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; }