#include <Mstn\MdlApi\mdl.h>
#include <Mstn\MdlApi\global.h>
#include <Mstn\MdlApi\dlogitem.h>
#include <Mstn\MdlApi\mstypes.h>
#include <UI\Core\BSize.h>
Go to the source code of this file.
Macros | |
#define | __msnativewindowH__ |
#define | winNT |
#define | NO_BOOLEAN_TYPE |
Typedefs | |
typedef void * | PVOID |
typedef PVOID | HANDLE |
typedef HANDLE | HWND |
typedef HANDLE | HICON |
typedef HANDLE | HINSTANCE |
typedef HANDLE | HACCEL |
typedef long | LONG_PTR |
typedef unsigned int | UINT_PTR |
typedef LONG_PTR | LPARAM |
typedef UINT_PTR | WPARAM |
typedef LONG_PTR | LRESULT |
Functions | |
StatusInt | mdlNativeWindow_initialize (char *pAppId) |
Initializes the support system for native windows. More... | |
bool | mdlNativeWindow_isBentleyProductEnv () |
Determines whether MicroStation, or another core Bentley product, is running. More... | |
HINSTANCE | mdlNativeWindow_getInstance () |
Gets the HINSTANCE of MicroStation. More... | |
HWND | mdlNativeWindow_getMainHandle (int iScreen) |
Gets the HWND of MicroStation's main window. More... | |
HICON | mdlNativeWindow_getMainIcon () |
Gets the HICON of MicroStation's main icon. More... | |
HWND | mdlNativeWindow_getWindowHandle (MSWindowP windowP) |
Gets the HWND associated with a given MicroStation's window. More... | |
StatusInt | mdlNativeWindow_createMSWindow (MSWindow **windowPP, HWND hAppWin, bool bModal, bool bResizeable, int resourceId) |
Creates an instance of an MSWindow to reflect the application's native window. More... | |
StatusInt | mdlNativeWindow_createMSWindowEx (MSWindow **windowPP, HWND hAppWin, bool bModal, bool bResizeable, bool bAbsolutePos, RscId resourceId, WCharCP alias, GuiWAttributes *pAttributes) |
Extended version of mdlNativeWindow_createMSWindow with additional parameters. More... | |
StatusInt | mdlNativeWindow_closeMSWindow (MSWindowP windowP, bool removeHooksFirst, HideReasonCode reasonCode, bool bypassFocusOut) |
Closes the windows by hiding it then and deallocating it, invalidating windowP for any further mdlNativeWindow_... More... | |
StatusInt | mdlNativeWindow_destroyMSWindow (MSWindowP windowP, bool bSavePosition) |
Destroys the MSWindow instance. More... | |
StatusInt | mdlNativeWindow_setAsChild (MSWindowP windowP, int iScreen, bool bChildStyle) |
Sets the native window as a child of MicroStation's main window. More... | |
StatusInt | mdlNativeWindow_addToWindowList (MSWindowP windowP) |
Adds a native window to MicroStation's window list for menu selection. More... | |
StatusInt | mdlNativeWindow_removeFromWindowList (MSWindowP windowP) |
Removes a native window from MicroStation's window list. More... | |
StatusInt | mdlNativeWindow_getPreviousPosition (BSIRect *pRect, int *pScreen, MSWindowP windowP) |
Gets the previous position, size and screen from the preferences. More... | |
StatusInt | mdlNativeWindow_savePosition (MSWindowP windowP) |
Saves the current position, size and screen to the preferences. More... | |
StatusInt | mdlNativeWindow_minimize (MSWindowP windowP) |
Minimizes a native window within the MicroStation windowing framework. More... | |
StatusInt | mdlNativeWindow_maximize (MSWindowP windowP) |
Maximizes a native window within the MicroStation windowing framework. More... | |
StatusInt | mdlNativeWindow_restore (MSWindowP windowP) |
Restores a minimized or maximized native window within the MicroStation windowing framework. More... | |
StatusInt | mdlNativeWindow_resize (MSWindowP windowP, int iWidth, int iHeight) |
Resizes a window based on the width and height provided. More... | |
bool | mdlNativeWindow_hasFocus (MSWindowP windowP) |
Determines whether a given MicroStation window has focus. More... | |
bool | mdlNativeWindow_isTwoApplicationWindows () |
Determines whether MicroStation is operating in two application screen mode. More... | |
int | mdlNativeWindow_getApplicationWindowCount () |
Gets the number of application screens. More... | |
StatusInt | mdlNativeWindow_changeScreen (MSWindowP windowP) |
Changes the native window from one MicroStation screen to the other. More... | |
StatusInt | mdlNativeWindow_changeScreenEx (MSWindowP windowP, int newScreen) |
Changes the native window from one MicroStation screen to another other. More... | |
StatusInt | mdlNativeWindow_onSetFocus (MSWindowP windowP, HWND hOldWin) |
Should be called in response to a WM_SETFOCUS event. More... | |
int | mdlNativeWindow_onMouseActivate (MSWindowP windowP, UInt32 nHitTest, UInt32 message) |
Should be called in response to a WM_MOUSEACTIVATE event. More... | |
StatusInt | mdlNativeWindow_onKillFocus (MSWindowP windowP, HWND hWndGaining) |
Should be called in response to a WM_KILLFOCUS event. More... | |
StatusInt | mdlNativeWindow_onEscapeKey (MSWindowP windowP, void *pMsg) |
Should be called in response to a WM_KEYDOWN event for a VK_ESCAPE character. More... | |
StatusInt | mdlNativeWindow_onFunctionKey (MSWindowP windowP, int messageId, WPARAM wParam, LPARAM lParam) |
Should be called in response to a WM_KEYDOWN event for VK_F1 through VK_F24 characters. More... | |
StatusInt | mdlNativeWindow_onSysCommand (MSWindowP windowP, UInt32 nID, LPARAM lParam) |
Should be called in response to a WM_SYSCOMMAND event. More... | |
StatusInt | mdlNativeWindow_onMouse (MSWindowP windowP, UInt32 msgType, UInt32 nFlags, int pointX, int pointY) |
Should be called in response to a WM_MOUSEMOVE or any Windows Button event such as WM_LBUTTONDOWN. More... | |
StatusInt | mdlNativeWindow_onMove (MSWindowP windowP, int x, int y) |
Should be called in response to a window movement message such as WM_WINDOWPOSCHANGED. More... | |
StatusInt | mdlNativeWindow_onResize (MSWindowP windowP, int width, int height) |
Should be called in response to a window resize message such as WM_WINDOWPOSCHANGED. More... | |
StatusInt | mdlNativeWindow_onWindowPosChanged (MSWindowP windowP, WPARAM wParam, LPARAM lParam) |
Should be called in response to a WM_WINDOWPOSCHANGED message. More... | |
StatusInt | mdlNativeWindow_onModalOpened (MSWindowP windowP) |
Should be called in response to a modal window being opened. More... | |
StatusInt | mdlNativeWindow_getToolSettingsWindow (MSWindow **windowPP) |
Gets the MSWindow instance for MicroStation's Tool Settings window. More... | |
void | mdlNativeWindow_setToolSettingsNative (bool bNative) |
Tells MicroStation that the Tool Settings window content is a native dialog or not. More... | |
StatusInt | mdlNativeWindow_getDockableWindow (MSWindow **windowPP, UInt32 nID, WCharCP pTitle, PFDialogBoxHook pHook, DialogHookInterests *pInterests) |
Creates a dockable window and returns the MSWindow instance for the new window. More... | |
StatusInt | mdlNativeWindow_getFramedWindow (MSWindow **windowPP, UInt32 nID, WCharCP pTitle, bool bResizeable, PFDialogBoxHook pHook, DialogHookInterests *pInterests) |
Creates a framed window and returns the MSWindow instance for the new window. More... | |
StatusInt | mdlNativeWindow_getNETDockableWindow (MSWindow **windowPP, UInt32 nID, WCharCP pTitle, bool bResizeable, PFDialogBoxHook pHook, DialogHookInterests *pInterests) |
Creates a .NET Dockable window and returns the MSWindow instance for the new window. More... | |
StatusInt | mdlNativeWindow_setAsContent (HWND hWndChild, void *pObject, MSWindowP windowP) |
Sets the HWND and C++ object as content of the MicroStation parent window. More... | |
void * | mdlNativeWindow_getContent (MSWindowP windowP) |
Retrieves the C++ object pointer of the child modeless dialog attached to a given window. More... | |
void * | mdlNativeWindow_getFocusedContent () |
If the focused MicroStation window has native content attached, this retrieves the C++ object pointer of the child modeless dialog. More... | |
StatusInt | mdlNativeWindow_attachContent (MSWindowP windowP, bool bSizeToContent) |
Attaches the native dialog content to the hosting MicroStation window. More... | |
StatusInt | mdlNativeWindow_detachContent (MSWindowP windowP) |
Detaches the native dialog content from the hosting MicroStation window. More... | |
void | mdlNativeWindow_setContentType (MSWindowP windowP, NativeContentType contentType) |
Sets the content type of the C++ object set as content. More... | |
NativeContentType | mdlNativeWindow_getFocusedContentType () |
If the focused MicroStation window has native content attached, this retrieves the type of C++ object set as content. More... | |
StatusInt | mdlNativeWindow_setSecondaryDialogHook (MSWindowP windowP, PFDialogBoxHook pHook, DialogHookInterests *pInterests) |
Establishes a secondary dialog hook. More... | |
StatusInt | mdlNativeWindow_removeSecondaryDialogHook (MSWindowP windowP, PFDialogBoxHook pHook) |
Removes a secondary dialog hook. More... | |
StatusInt | mdlNativeWindow_registerAcceleratorTable (MSWindowP windowP, HACCEL hAccTable) |
Associates an accelerator table with the MicroStation window. More... | |
StatusInt | mdlNativeWindow_unregisterAcceleratorTables (MSWindowP windowP) |
Disassociates registered accelerator tables from a MicroStation window. More... | |
StatusInt | mdlNativeWindow_getAvailablePopupWindow (MSWindow **windowPP) |
Gets the available popup window created to host a native window. More... | |
StatusInt | mdlNativeWindow_setHelpInfo (MSWindowP windowP, UInt32 helpInfo) |
Sets the alternate help ID to use for the window when invoking the help engine. More... | |
bool | mdlNativeWindow_isNETDockable (MSWindowP windowP) |
Determines whether the designated window is has the .NET Dockable attribute. More... | |
StatusInt | mdlNativeWindow_setNETDockable (MSWindowP windowP, bool value) |
Sets the window as Dialog Dockable. More... | |
StatusInt | mdlNativeWindow_getNETDockedExtents (MSWindowP windowP) |
Gets the Docked Extents from a .NET Dockable dialog and sends those extents to the .NET docking system. More... | |
StatusInt | mdlNativeWindow_getCommonDockedExtent (int *pWidth, int *pHeight) |
Returns the common docked extent for the current tool and border sizes. More... | |
StatusInt | mdlNativeWindow_getCommonIconSize (int *pWidth, int *pHeight) |
Returns the common icon size for the current tool and border sizes. More... | |
StatusInt | mdlNativeWindow_setTitle (MSWindowP windowP, WCharCP title) |
Sets the window's title specified by titleP. More... | |
StatusInt | mdlNativeWindow_setSize (MSWindowP windowP, int width, int height) |
Changes the window size specified in windowP. More... | |
StatusInt | mdlNativeWindow_contentRectGetLocal (BSIRectP contentRectP, MSWindowP windowP) |
Gets the content rectangle for a window in the window's local coordinates. More... | |
StatusInt | mdlNativeWindow_contentRectGetGlobal (BSIRectP contentRectP, MSWindowP windowP) |
Gets the content rectangle for a window in global coordinates. More... | |
StatusInt | mdlNativeWindow_globalRectGetLocal (BSIRectP rP, MSWindowP windowP) |
Gets the global rectangle for windowP in the window's local coordinates. More... | |
StatusInt | mdlNativeWindow_globalRectGetGlobal (BSIRectP rP, MSWindowP windowP) |
Gets the global rectangle for windowP in global coordinates. More... | |
void | mdlNativeWindow_globalPointToScreen (Point2d *screenPtP, MSWindowP windowP, Point2dCP globalPtP) |
Converts a point in global coordinates to a point in screen coordinates for the screen number specified by windowP. More... | |
void | mdlNativeWindow_screenPointToGlobal (Point2d *globalPtP, MSWindowP windowP, Point2dCP screenPtP) |
Converts a point in screen coordinates to a point in global coordinates for the screen number specified by windowP. More... | |
DockPosition | mdlNativeWindow_getDocked (MSWindowP windowP) |
Determines a window's current region number. More... | |
bool | mdlNativeWindow_isDockable (MSWindowP windowP) |
Tests whether or not the designated window is dockable. More... | |
StatusInt | mdlNativeWindow_dockWindow (MSWindowP windowP, DockPosition dockPosition, DockPriority dockPriority) |
Docks a window. More... | |
StatusInt | mdlNativeWindow_undockWindow (MSWindowP windowP, Point2dCP newPosP) |
Undocks a window. More... | |
void | mdlNativeWindow_organizeApplicationArea () |
Repositions all docked windows. More... | |
void | mdlNativeWindow_gradientBackgroundDraw (MSWindowP windowP, BSIRectCP rectP, BSIRectCP clipRectP, BSIColorDescrCP bgColorP, bool bVertical, bool bRoundEdges) |
Fills a rectangle with a gradient for docked windows using two system colors. More... | |
bool | mdlNativeWindow_isMoveHandle (MSWindowP windowP) |
Determines if a window needs a move handle when docked. More... | |
StatusInt | mdlNativeWindow_drawMoveHandles (MSWindowP windowP, DockPosition docked, BSIRectCP dialogRectP) |
Draws the handle the user grabs to move a docked window. More... | |
int | mdlNativeWindow_getScreenNumber (MSWindowP windowP) |
Returns the screen number that windowP is on. More... | |
StatusInt | mdlNativeWindow_setIconName (MSWindowP windowP, WCharCP name) |
Sets the window's icon name. More... | |
#define __msnativewindowH__ |
#define NO_BOOLEAN_TYPE |
#define winNT |
typedef long LONG_PTR |
typedef void* PVOID |
typedef unsigned int UINT_PTR |
StatusInt mdlNativeWindow_addToWindowList | ( | MSWindowP | windowP | ) |
Adds a native window to MicroStation's window list for menu selection.
[in] | windowP | Window to add to the selection list |
StatusInt mdlNativeWindow_attachContent | ( | MSWindowP | windowP, |
bool | bSizeToContent | ||
) |
Attaches the native dialog content to the hosting MicroStation window.
[in] | windowP | The parent MicroStation window |
[in] | bSizeToContent | Indicates whether to resize the parent based on the size of the child dialog |
StatusInt mdlNativeWindow_changeScreen | ( | MSWindowP | windowP | ) |
Changes the native window from one MicroStation screen to the other.
[in] | windowP | Window to change from one screen to the other |
StatusInt mdlNativeWindow_changeScreenEx | ( | MSWindowP | windowP, |
int | newScreen | ||
) |
Changes the native window from one MicroStation screen to another other.
[in] | windowP | Window to change from one screen to the other |
[in] | newScreen | new screen number |
StatusInt mdlNativeWindow_closeMSWindow | ( | MSWindowP | windowP, |
bool | removeHooksFirst, | ||
HideReasonCode | reasonCode, | ||
bool | bypassFocusOut | ||
) |
Closes the windows by hiding it then
and deallocating it, invalidating windowP for any further mdlNativeWindow_...
operations.
[in] | windowP | window to close |
[in] | removeHooksFirst | indicates whether to remove dialog & item hooks first before closing the window |
[in] | reasonCode | reason for closing the window - codes found in dlogitem.h. |
[in] | bypassFocusOut | bypass the focus out |
StatusInt mdlNativeWindow_contentRectGetGlobal | ( | BSIRectP | contentRectP, |
MSWindowP | windowP | ||
) |
Gets the content rectangle for a window in global coordinates.
[out] | contentRectP | content rect in global coords |
[in] | windowP | window to get content rect for |
StatusInt mdlNativeWindow_contentRectGetLocal | ( | BSIRectP | contentRectP, |
MSWindowP | windowP | ||
) |
Gets the content rectangle for a window in the window's local coordinates.
[out] | contentRectP | content rect in global coords |
[in] | windowP | window to get content rect for |
StatusInt mdlNativeWindow_createMSWindow | ( | MSWindow ** | windowPP, |
HWND | hAppWin, | ||
bool | bModal, | ||
bool | bResizeable, | ||
int | resourceId | ||
) |
Creates an instance of an MSWindow to reflect the application's native window.
This MSWindow is then used in other mdlNativeWindow_* function calls.
[out] | windowPP | receives a pointer to an MSWindow |
[in] | hAppWin | HWND of the application's native window |
[in] | bModal | Indicates whether this window is a modal dialog |
[in] | bResizeable | Indicates whether this window is resizeable |
[in] | resourceId | Numeric resource used for saving/restoring window position and size |
StatusInt mdlNativeWindow_createMSWindowEx | ( | MSWindow ** | windowPP, |
HWND | hAppWin, | ||
bool | bModal, | ||
bool | bResizeable, | ||
bool | bAbsolutePos, | ||
RscId | resourceId, | ||
WCharCP | alias, | ||
GuiWAttributes * | pAttributes | ||
) |
Extended version of mdlNativeWindow_createMSWindow with additional parameters.
Creates an instance of an MSWindow to reflect the application's native window. This MSWindow is then used in other mdlNativeWindow_* function calls.
[out] | windowPP | receives a pointer to an MSWindow |
[in] | hAppWin | HWND of the application's native window |
[in] | bModal | Indicates whether this window is a modal dialog |
[in] | bResizeable | Indicates whether this window is resizeable |
[in] | bAbsolutePos | Indicates whether to Use absolute position for save/get |
[in] | resourceId | Numeric resource used for saving/restoring window position and size |
[in] | alias | May be NULL; Unique ID used for save and restoring window position |
[in] | pAttributes | May be NULL; attributes used by newly created window |
StatusInt mdlNativeWindow_destroyMSWindow | ( | MSWindowP | windowP, |
bool | bSavePosition | ||
) |
Destroys the MSWindow instance.
This function does not close or destroy the native window.
[in] | windowP | The MSWindow to destroy |
[in] | bSavePosition | Indicates whether to save the position and size |
StatusInt mdlNativeWindow_detachContent | ( | MSWindowP | windowP | ) |
Detaches the native dialog content from the hosting MicroStation window.
[in] | windowP | The parent MicroStation window |
StatusInt mdlNativeWindow_dockWindow | ( | MSWindowP | windowP, |
DockPosition | dockPosition, | ||
DockPriority | dockPriority | ||
) |
Docks a window.
The window must be capable of being docked. mdlNativeWindow_organizeApplicationArea must be called after any dock/undock operation to organize the layout of the dock regions and, if necessary, reposition windows.
[in] | windowP | is the window to dock. |
[in] | dockPosition | is a region number. DOCK_TOP, DOCK_BOTTOM, DOCK_LEFT, and DOCK_RIGHT are valid values for dockPosition. |
[in] | dockPriority | is the relative priority of a window within a given region. It is typically set based on one of the following values: DOCKPRIORITY_BASETOP, DOCKPRIORITY_BASEBOTTOM, DOCKPRIORITY_BASELEFT or DOCKPRIORITY_BASERIGHT. A lower number decreases the window's priority and moves the window down and to the right in the selected dock region. |
StatusInt mdlNativeWindow_drawMoveHandles | ( | MSWindowP | windowP, |
DockPosition | docked, | ||
BSIRectCP | dialogRectP | ||
) |
Draws the handle the user grabs to move a docked window.
[in] | windowP | points to the window where the move handle will be drawn. |
[in] | docked | the dock mode of the dialog: DOCK_TOP, BOTTOM, LEFT, RIGHT, NOTDOCKED |
[in] | dialogRectP | the rectangle of the Dialog Box |
int mdlNativeWindow_getApplicationWindowCount | ( | ) |
Gets the number of application screens.
StatusInt mdlNativeWindow_getAvailablePopupWindow | ( | MSWindow ** | windowPP | ) |
Gets the available popup window created to host a native window.
[out] | windowPP | Receives a pointer to the available popup window |
StatusInt mdlNativeWindow_getCommonDockedExtent | ( | int * | pWidth, |
int * | pHeight | ||
) |
Returns the common docked extent for the current tool and border sizes.
[out] | pWidth | receives the common docked width. Set to NULL if not desired. |
[out] | pHeight | receives the common docked height. Set to NULL if not desired. |
StatusInt mdlNativeWindow_getCommonIconSize | ( | int * | pWidth, |
int * | pHeight | ||
) |
Returns the common icon size for the current tool and border sizes.
[out] | pWidth | receives the common icon width. Set to NULL if not desired. |
[out] | pHeight | receives the common icon height. Set to NULL if not desired. |
void* mdlNativeWindow_getContent | ( | MSWindowP | windowP | ) |
Retrieves the C++ object pointer of the child modeless dialog attached to a given window.
[in] | windowP | The parent MicroStation window |
StatusInt mdlNativeWindow_getDockableWindow | ( | MSWindow ** | windowPP, |
UInt32 | nID, | ||
WCharCP | pTitle, | ||
PFDialogBoxHook | pHook, | ||
DialogHookInterests * | pInterests | ||
) |
Creates a dockable window and returns the MSWindow instance for the new window.
[out] | windowPP | Receives a pointer to a dockable MicroStation window |
[in] | nID | Windows resource ID of the dialog to be hosted |
[in] | pTitle | Title for the dockable dialog |
[in] | pHook | Function pointer for secondary dialog hook |
[in] | pInterests | Interests for the secondary dialog hook |
DockPosition mdlNativeWindow_getDocked | ( | MSWindowP | windowP | ) |
Determines a window's current region number.
[in] | windowP | is the window to test. |
void* mdlNativeWindow_getFocusedContent | ( | ) |
If the focused MicroStation window has native content attached, this retrieves the C++ object pointer of the child modeless dialog.
NativeContentType mdlNativeWindow_getFocusedContentType | ( | ) |
If the focused MicroStation window has native content attached, this retrieves the type of C++ object set as content.
StatusInt mdlNativeWindow_getFramedWindow | ( | MSWindow ** | windowPP, |
UInt32 | nID, | ||
WCharCP | pTitle, | ||
bool | bResizeable, | ||
PFDialogBoxHook | pHook, | ||
DialogHookInterests * | pInterests | ||
) |
Creates a framed window and returns the MSWindow instance for the new window.
[out] | windowPP | Receives a pointer to a framed MicroStation window |
[in] | nID | Windows resource ID of the dialog to be hosted |
[in] | pTitle | Title for the dialog |
[in] | bResizeable | true = the dialog is resizeable |
[in] | pHook | Function pointer for secondary dialog hook |
[in] | pInterests | Interests for the secondary dialog hook |
HINSTANCE mdlNativeWindow_getInstance | ( | ) |
Gets the HINSTANCE of MicroStation.
HWND mdlNativeWindow_getMainHandle | ( | int | iScreen | ) |
Gets the HWND of MicroStation's main window.
[in] | iScreen | index of the screen to obtain the HWND for. If MicroStation is operating in single application window mode, this should be 0. If operating in two window mode, this may be 0 or 1. |
HICON mdlNativeWindow_getMainIcon | ( | ) |
Gets the HICON of MicroStation's main icon.
StatusInt mdlNativeWindow_getNETDockableWindow | ( | MSWindow ** | windowPP, |
UInt32 | nID, | ||
WCharCP | pTitle, | ||
bool | bResizeable, | ||
PFDialogBoxHook | pHook, | ||
DialogHookInterests * | pInterests | ||
) |
Creates a .NET Dockable window and returns the MSWindow instance for the new window.
[out] | windowPP | Receives a pointer to a .NET Dockable MicroStation window |
[in] | nID | Windows resource ID of the dialog to be hosted |
[in] | pTitle | Title for the dialog |
[in] | bResizeable | true = the dialog is resizeable |
[in] | pHook | Function pointer for secondary dialog hook |
[in] | pInterests | Interests for the secondary dialog hook |
StatusInt mdlNativeWindow_getNETDockedExtents | ( | MSWindowP | windowP | ) |
Gets the Docked Extents from a .NET Dockable dialog and sends those extents to the .NET docking system.
[in] | windowP | The .NET Dockable window |
StatusInt mdlNativeWindow_getPreviousPosition | ( | BSIRect * | pRect, |
int * | pScreen, | ||
MSWindowP | windowP | ||
) |
Gets the previous position, size and screen from the preferences.
[in,out] | pRect | Receives the rectangle information about last position and size |
[in,out] | pScreen | Receives the index of the screen the native window was on last |
[in] | windowP | Window to get information about |
int mdlNativeWindow_getScreenNumber | ( | MSWindowP | windowP | ) |
Returns the screen number that windowP is on.
[in] | windowP | window to get screen number for |
StatusInt mdlNativeWindow_getToolSettingsWindow | ( | MSWindow ** | windowPP | ) |
Gets the MSWindow instance for MicroStation's Tool Settings window.
[out] | windowPP | Receives a pointer to MicroStation's Tool Settings window |
HWND mdlNativeWindow_getWindowHandle | ( | MSWindowP | windowP | ) |
Gets the HWND associated with a given MicroStation's window.
[in] | windowP | The MSWindow to get the HWND for |
void mdlNativeWindow_globalPointToScreen | ( | Point2d * | screenPtP, |
MSWindowP | windowP, | ||
Point2dCP | globalPtP | ||
) |
Converts a point in global coordinates to a point in screen coordinates for the screen number specified by windowP.
The input point in global coordinates is specified by globalPtP. The output point in screen coordinates is returned in screenPtP. When globalPtP is NULL, mdlNativeWindow_globalPointToScreen converts the output argument in place, using screenPtP as both the input and output.
[in,out] | screenPtP | Point in screen coordinates. |
[in] | windowP | Window to get screen number from. |
[in] | globalPtP | Point in global coordinates. |
StatusInt mdlNativeWindow_globalRectGetGlobal | ( | BSIRectP | rP, |
MSWindowP | windowP | ||
) |
Gets the global rectangle for windowP in global coordinates.
[out] | rP | content rect in global coords |
[in] | windowP | window to get content rect for |
StatusInt mdlNativeWindow_globalRectGetLocal | ( | BSIRectP | rP, |
MSWindowP | windowP | ||
) |
Gets the global rectangle for windowP in the window's local coordinates.
[out] | rP | content rect in global coords |
[in] | windowP | window to get content rect for |
void mdlNativeWindow_gradientBackgroundDraw | ( | MSWindowP | windowP, |
BSIRectCP | rectP, | ||
BSIRectCP | clipRectP, | ||
BSIColorDescrCP | bgColorP, | ||
bool | bVertical, | ||
bool | bRoundEdges | ||
) |
Fills a rectangle with a gradient for docked windows using two system colors.
[in] | windowP | is the window to draw to. |
[in] | rectP | is the rectangle to be filled. |
[in] | clipRectP | A clipping rectangle. If clipRectP is NULL, rectP is used. |
[in] | bgColorP | is the middle color between the two system colors. If bgColorP is NULL, the system background color is used. |
[in] | bVertical | indicates whether the shading occurs from left to right (true) or top to bottom (false). |
[in] | bRoundEdges | indicates whether to round the edges after drawing the gradient. |
bool mdlNativeWindow_hasFocus | ( | MSWindowP | windowP | ) |
Determines whether a given MicroStation window has focus.
[in] | windowP | Window to query for focus |
bool mdlNativeWindow_isBentleyProductEnv | ( | ) |
bool mdlNativeWindow_isDockable | ( | MSWindowP | windowP | ) |
Tests whether or not the designated window is dockable.
[in] | windowP | is the window to test. |
bool mdlNativeWindow_isMoveHandle | ( | MSWindowP | windowP | ) |
Determines if a window needs a move handle when docked.
[in] | windowP | points to the window. |
bool mdlNativeWindow_isNETDockable | ( | MSWindowP | windowP | ) |
Determines whether the designated window is has the .NET Dockable attribute.
[out] | windowP | is the window to test. |
bool mdlNativeWindow_isTwoApplicationWindows | ( | ) |
Determines whether MicroStation is operating in two application screen mode.
StatusInt mdlNativeWindow_maximize | ( | MSWindowP | windowP | ) |
Maximizes a native window within the MicroStation windowing framework.
[in] | windowP | Window to maximize |
StatusInt mdlNativeWindow_minimize | ( | MSWindowP | windowP | ) |
Minimizes a native window within the MicroStation windowing framework.
[in] | windowP | Window to minimize |
StatusInt mdlNativeWindow_onEscapeKey | ( | MSWindowP | windowP, |
void * | pMsg | ||
) |
Should be called in response to a WM_KEYDOWN event for a VK_ESCAPE character.
This allows for proper focus shifting in MicroStation.
[in] | windowP | Window receiving the key event |
[in] | pMsg | MSG received |
StatusInt mdlNativeWindow_onFunctionKey | ( | MSWindowP | windowP, |
int | messageId, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Should be called in response to a WM_KEYDOWN event for VK_F1 through VK_F24 characters.
This allows for proper function key processing in MicroStation.
[in] | windowP | Window receiving the event |
[in] | messageId | The Windows message id; Can be NULL - not used |
[in] | wParam | The wParam in the Windows message |
[in] | lParam | The wParam in the Windows message |
StatusInt mdlNativeWindow_onKillFocus | ( | MSWindowP | windowP, |
HWND | hWndGaining | ||
) |
Should be called in response to a WM_KILLFOCUS event.
This allows for proper focus handling in MicroStation.
[in] | windowP | Window that is receiving focus |
[in] | hWndGaining | HWND of the Window gaining focus |
StatusInt mdlNativeWindow_onModalOpened | ( | MSWindowP | windowP | ) |
Should be called in response to a modal window being opened.
[in] | windowP | Modal Window being opened |
StatusInt mdlNativeWindow_onMouse | ( | MSWindowP | windowP, |
UInt32 | msgType, | ||
UInt32 | nFlags, | ||
int | pointX, | ||
int | pointY | ||
) |
Should be called in response to a WM_MOUSEMOVE or any Windows Button event such as WM_LBUTTONDOWN.
This allows for proper handling of Docked windows in MicroStation.
[in] | windowP | Window receiving the MouseMove event |
[in] | msgType | The mouse-related WM_ message type |
[in] | nFlags | Indicates whether various virtual keys are down during WM_MOUSEMOVE message |
[in] | pointX | CPoint x member |
[in] | pointY | CPoint y member |
Should be called in response to a WM_MOUSEACTIVATE event.
This allows for proper focus handling in MicroStation.
[in] | windowP | Window that is receiving focus |
[in] | nHitTest | The hit-test area code from WM_MOUSEACTIVATE. |
[in] | message | The mouse message number from WM_MOUSEACTIVATE. |
StatusInt mdlNativeWindow_onMove | ( | MSWindowP | windowP, |
int | x, | ||
int | y | ||
) |
Should be called in response to a window movement message such as WM_WINDOWPOSCHANGED.
This allows for proper setting of internal content and global rectangles.
[in] | windowP | Window receiving the MouseMove event |
[in] | x | The X setting of the new position |
[in] | y | The Y setting of the new position |
StatusInt mdlNativeWindow_onResize | ( | MSWindowP | windowP, |
int | width, | ||
int | height | ||
) |
Should be called in response to a window resize message such as WM_WINDOWPOSCHANGED.
This allows for proper setting of internal content and global rectangles.
[in] | windowP | Window receiving the MouseMove event |
[in] | width | The new width |
[in] | height | The new height |
StatusInt mdlNativeWindow_onSetFocus | ( | MSWindowP | windowP, |
HWND | hOldWin | ||
) |
Should be called in response to a WM_SETFOCUS event.
This allows for proper focus handling in MicroStation.
[in] | windowP | Window that is receiving focus |
[in] | hOldWin | HWND of the Window losing focus |
Should be called in response to a WM_SYSCOMMAND event.
This allows for proper handling of Change Screen and Sink commands in MicroStation.
[in] | windowP | Window receiving the SysCommand event |
[in] | nID | ID of the Windows WM_SYSCOMMAND message |
[in] | lParam | LPARAM passed into the OnSysCommand method |
Should be called in response to a WM_WINDOWPOSCHANGED message.
This allows for proper setting of internal content and global rectangles.
[in] | windowP | Window receiving the MouseMove event |
[in] | wParam | WPARAM from the WM_WDOWPOSCHANGED message |
[in] | lParam | LPARAM from the WM_WDOWPOSCHANGED message |
void mdlNativeWindow_organizeApplicationArea | ( | ) |
Repositions all docked
windows.
It must be called after a window (or group of windows) is either docked or undocked.
StatusInt mdlNativeWindow_registerAcceleratorTable | ( | MSWindowP | windowP, |
HACCEL | hAccTable | ||
) |
Associates an accelerator table with the MicroStation window.
Since a window may have multiple accelerator tables, this function may be called for each accelerator table.
[in] | windowP | The parent MicroStation window |
[in] | hAccTable | HACCEL to the accelerator table |
StatusInt mdlNativeWindow_removeFromWindowList | ( | MSWindowP | windowP | ) |
Removes a native window from MicroStation's window list.
[in] | windowP | Window to remove |
StatusInt mdlNativeWindow_removeSecondaryDialogHook | ( | MSWindowP | windowP, |
PFDialogBoxHook | pHook | ||
) |
Removes a secondary dialog hook.
[in] | windowP | The parent MicroStation window |
[in] | pHook | Function pointer for secondary dialog hook |
StatusInt mdlNativeWindow_resize | ( | MSWindowP | windowP, |
int | iWidth, | ||
int | iHeight | ||
) |
Resizes a window based on the width and height provided.
[in] | windowP | Window to restore |
[in] | iWidth | New width of the window |
[in] | iHeight | New height of the window |
StatusInt mdlNativeWindow_restore | ( | MSWindowP | windowP | ) |
Restores a minimized or maximized native window within the MicroStation windowing framework.
[in] | windowP | Window to restore |
StatusInt mdlNativeWindow_savePosition | ( | MSWindowP | windowP | ) |
Saves the current position, size and screen to the preferences.
[in] | windowP | Window to save position for |
void mdlNativeWindow_screenPointToGlobal | ( | Point2d * | globalPtP, |
MSWindowP | windowP, | ||
Point2dCP | screenPtP | ||
) |
Converts a point in screen coordinates to a point in global coordinates for the screen number specified by windowP.
The input point in screen coordinates is specified by screenPtP. The output point in global coordinates is returned in globalPtP. When screenPtP is NULL, mdlNativeWindow_screenPointToGlobal converts the output argument in place, using globalPtP as both the input and output.
[in,out] | globalPtP | Point in global coordinates. |
[in] | windowP | Window to get screen number from. |
[in] | screenPtP | Point in screen coordinates. |
StatusInt mdlNativeWindow_setAsChild | ( | MSWindowP | windowP, |
int | iScreen, | ||
bool | bChildStyle | ||
) |
Sets the native window as a child of MicroStation's main window.
[in] | windowP | The MSWindow of the child window |
[in] | iScreen | index of the screen on which to put the native window |
[in] | bChildStyle | true = set the WS_CHILD attribute dynamically. Set to true for Dialogs and false for Frames. |
StatusInt mdlNativeWindow_setAsContent | ( | HWND | hWndChild, |
void * | pObject, | ||
MSWindowP | windowP | ||
) |
Sets the HWND and C++ object as content of the MicroStation parent window.
[in] | hWndChild | HWND of the child modeless dialog |
[in] | pObject | C++ object pointer of the modeless dialog |
[in] | windowP | The parent MicroStation window |
void mdlNativeWindow_setContentType | ( | MSWindowP | windowP, |
NativeContentType | contentType | ||
) |
Sets the content type of the C++ object set as content.
[in] | windowP | The parent MicroStation window |
[in] | contentType | The type of the C++ object set as the content |
StatusInt mdlNativeWindow_setHelpInfo | ( | MSWindowP | windowP, |
UInt32 | helpInfo | ||
) |
Sets the alternate help ID to use for the window when invoking the help engine.
[in] | windowP | The window to set the help info id for |
[in] | helpInfo | The help info id |
StatusInt mdlNativeWindow_setIconName | ( | MSWindowP | windowP, |
WCharCP | name | ||
) |
Sets the window's icon name.
This name is associated with the window for all window drawing.
[in] | windowP | window whose icon name to set |
[in] | name | the icon name to associate with the window |
StatusInt mdlNativeWindow_setNETDockable | ( | MSWindowP | windowP, |
bool | value | ||
) |
Sets the window as Dialog Dockable.
[in] | windowP | window to set as Dialog Dockable |
[in] | value | true for dockable or false for not dockable |
StatusInt mdlNativeWindow_setSecondaryDialogHook | ( | MSWindowP | windowP, |
PFDialogBoxHook | pHook, | ||
DialogHookInterests * | pInterests | ||
) |
Establishes a secondary dialog hook.
[in] | windowP | The parent MicroStation window |
[in] | pHook | Function pointer for secondary dialog hook |
[in] | pInterests | Interests for the secondary dialog hook |
StatusInt mdlNativeWindow_setSize | ( | MSWindowP | windowP, |
int | width, | ||
int | height | ||
) |
Changes the window size specified in windowP.
[in] | windowP | window to resize |
[in] | width | new window width |
[in] | height | new window height |
StatusInt mdlNativeWindow_setTitle | ( | MSWindowP | windowP, |
WCharCP | title | ||
) |
Sets the window's title specified by titleP.
[in] | windowP | window to set title for |
[in] | title | Unicode title to set |
void mdlNativeWindow_setToolSettingsNative | ( | bool | bNative | ) |
Tells MicroStation that the Tool Settings window content is a native dialog or not.
[in] | bNative | Indicates whether Tool Settings window content is a native dialog or not |
StatusInt mdlNativeWindow_undockWindow | ( | MSWindowP | windowP, |
Point2dCP | newPosP | ||
) |
Undocks a window.
mdlNativeWindow_undockWindow has no affect on a window that is not currently docked. mdlNativeWindow_organizeApplicationArea must be called after any dock/undock operation to organize the layout of the dock regions and, if necessary, reposition windows.
[in] | windowP | window to undock |
[in] | newPosP | is the position, in global coordinates, of where to move the upper left corner of the window's content rectangle after it is undocked. |
StatusInt mdlNativeWindow_unregisterAcceleratorTables | ( | MSWindowP | windowP | ) |
Disassociates registered accelerator tables from a MicroStation window.
[in] | windowP | The parent MicroStation window |