GEOS SDK TechDocs
|
|
1.1 The VCNI_attrs Field
|
1.3 Fields That Affect the Document
VCNI_view, VCNI_viewHeight, VCNI_viewWidth, VCNI_window, MSG_VIS_CONTENT_GET_WIN_SIZE
Because the content must interact directly with the view, it must maintain some information about both the GenView object and its associated window.
VisContentClass
defines four fields that deal exclusively with view-related information. Each of these fields is described below.
VCNI_view
MSG_VIS_VUP_SEND_TO_OBJECT_OF_CLASS
and
MSG_VIS_VUP_CALL_OBJECT_OF_CLASS
. The field will be set automatically by the GenView when the view is opened; the view will send a
MSG_META_CONTENT_VIEW_OPENING
.
VCNI_viewHeight
MSG_VIS_CONTENT_GET_WIN_SIZE
(below). The view automatically notifies the content each time the window size changes with
MSG_META_CONTENT_VIEW_SIZE_CHANGED
.
VCNI_viewWidth
MSG_VIS_CONTENT_GET_WIN_SIZE
(below). The view automatically notifies the content on each window resize with
MSG_META_CONTENT_VIEW_SIZE_CHANGED
.
VCNI_window
MSG_VIS_QUERY_WINDOW
. This field will be set automatically by the GenView when the view's window is first opened. The view will send the messages
MSG_META_CONTENT_VIEW_WIN_OPENED
and
MSG_META_CONTENT_VIEW_OPENING
to set the window handle. When the view window closes, the view will send
MSG_META_CONTENT_VIEW_CLOSING
and
MSG_META_CONTENT_VIEW_WIN_CLOSED
.The messages shown above that are sent by the view to the content are detailed in Messages Received from the View .
SizeAsDWord MSG_VIS_CONTENT_GET_WIN_SIZE();
This message returns the size of the content object's associated window in terms of width and height.
Source: Unrestricted.
Destination: Any VisContent object.
Parameters: None.
Return: A
SizeAsDWord
value with the window's width in the high word and the window's height in the low word. Use the DWORD_HEIGHT and DWORD_WIDTH macros to extract the proper values.
Interception: Unlikely.
GEOS SDK TechDocs
|
|
1.1 The VCNI_attrs Field
|
1.3 Fields That Affect the Document