|
sprint 1-alpha
|
#include <VWindow.h>
Inherits sprint::gtl::CWindow.
Public Member Functions | |
| virtual | ~VWindow () |
| virtual LPCTSTR | getClassName () const |
| Ritorna il nome della classe, da passare alla Create e alla GetClass. | |
| virtual void | GetClass (HINSTANCE hInstance, WNDCLASSEX &wc) const |
| bool | Register () const |
| register the single class instance, getClassName+GetClass | |
| HWND | Create (LPCTSTR lpWindowName, DWORD dwStyle=WS_OVERLAPPEDWINDOW, int x=CW_USEDEFAULT, int y=CW_USEDEFAULT, int nWidth=CW_USEDEFAULT, int nHeight=CW_USEDEFAULT, HWND hWndParent=NULL, HMENU hMenu=NULL, HINSTANCE hInstance=sprint::gtl::ThisInstance()) |
| HWND | CreateEx (LPCTSTR lpWindowName, DWORD dwExStyle, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance) |
| HWND | ModelessDialog (LPCTSTR lpTemplate, DLGPROC lpDialogFunc) |
| Create a Modeless Dialog. | |
| template<class T > | |
| HWND | ModelessTDialog (LPCTSTR lpTemplate, T &inst) |
| INT_PTR | ModalDialog (LPCTSTR lpTemplate, DLGPROC lpDialogFunc) |
| Create a Modeless Dialog. | |
| template<class T > | |
| INT_PTR | ModalTDialog (LPCTSTR lpTemplate, T &inst) |
| template<class T > | |
| INT_PTR | ModalTDialog (LPCTSTR lpTemplate) |
| virtual bool | OnCreate () |
| ************************************************ /// // In this section implemented virtual methods are presented | |
| virtual bool | OnPaint () |
| virtual bool | OnDestroy () |
| virtual bool | OnCommand (WORD wNotifyCode, WORD wId) |
| virtual bool | OnNotify (HWND hwnd, int idCtrl, LPNMHDR pnmh) |
| virtual bool | OnSize (WPARAM fwSizeType, WORD nWidth, WORD nHeight) |
| virtual bool | OnButtonDown (int button_no, WPARAM fwKeys, WORD xPos, WORD yPos) |
| virtual bool | OnButtonUp (int button_no, WPARAM fwKeys, WORD xPos, WORD yPos) |
| virtual bool | OnMouseMove (WPARAM fwKeys, WORD xPos, WORD yPos) |
| virtual bool | OnMouseWheel (WPARAM fwKeys, int dir, int xPos, int yPos) |
| virtual bool | OnDropFile (const char *filename) |
| virtual bool | OnTimer (int id) |
| virtual bool | OnSize (unsigned int w, unsigned int h) |
| virtual bool | OnChar (WPARAM key) |
| virtual bool | OnKeyDown (WPARAM key) |
Protected Attributes | |
| int | vscroll |
| int | hscroll |
Classe VWindow Implement window behaviour using virtual functions
class MyWin : public VWindow { ... };
| virtual sprint::gtl::VWindow::~VWindow | ( | ) | [virtual] |
Questo costruttore, anche se bello ha il difetto di richiedere metodi virtuali nel costruttore implementati nei figli: deprecato
| HWND sprint::gtl::VWindow::Create | ( | LPCTSTR | lpWindowName, |
| DWORD | dwStyle = WS_OVERLAPPEDWINDOW, |
||
| int | x = CW_USEDEFAULT, |
||
| int | y = CW_USEDEFAULT, |
||
| int | nWidth = CW_USEDEFAULT, |
||
| int | nHeight = CW_USEDEFAULT, |
||
| HWND | hWndParent = NULL, |
||
| HMENU | hMenu = NULL, |
||
| HINSTANCE | hInstance = sprint::gtl::ThisInstance() |
||
| ) |
Crea una nuova finestra (tuttavia ogni classe puņ creare un unica HWND)
| virtual void sprint::gtl::VWindow::GetClass | ( | HINSTANCE | hInstance, |
| WNDCLASSEX & | wc | ||
| ) | const [virtual] |
this function permit to customize class description
void MyClass::GetClass(HINSTANCE hInstance, WNDCLASSEX & wincl) const { sprint::VWindow::GetClass(hInstance, wincl); wincl.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APP)); wincl.hbrBackground = NULL; wincl.hCursor = LoadCursor(NULL, IDC_ARROW); }
1.7.4