OWLNext 7.0
Borland's Object Windows Library for the modern age
|
There are a number of predefined Doc/View events.
Each event has a corresponding response table macro and handler function signature defined. Note that the Doc/View model doesn't provide versions of these functions. You must declare the functions in your view class and provide the appropriate functionality for each function.
Response table macro | Event name | Event handler | Event |
EV_VN_VIEWOPENED | vnViewOpened | VnViewOpened(TView *) | Indicates that a new view has been constructed. |
EV_VN_VIEWCLOSED | vnViewClosed | VnViewClosed(TView *) | Indicates that a view is about to be destroyed. |
EV_VN_DOCOPENED | vnDocOpened | VnDocOpened(int) | Indicates that a new document has been opened. |
EV_VN_DOCCLOSED | vnDocClosed | VnDocClosed(int) | Indicates that a document has been closed. |
EV_VN_COMMIT | vnCommit | VnCommit(bool) | Indicates that changes made to the data in the view should be committed to the document. |
EV_VN_REVERT | vnRevert | VnRevert(bool) | Indicates that changes made to the data in the view should be discarded and the data should be restored from the document. |
EV_VN_ISDIRTY | vnIsDirty | VnIsDirty(void) | Should return true if changes have been made to the data in the view and not yet committed to the document, otherwise returns false. |
EV_VN_ISWINDOW | vnIsWindow | VnIsWindow(HWND) | Should return true if the HWND parameter is the same as that of the view's display window. |
All the event-handling functions used for these messages return bool.