Functions

Functions

StatusInt mdlNativeWindow_initialize (char *pAppId)
 Initializes the support system for native windows. More...
 
int mdlWin32_addFunction (const void *funcP, const WNMIFunctionType funcType, const HWND hwnd, const UINT uMsg)
 
The mdlWin32_addFunction function allows an application to register interest

in a particular Windows message for a given Window. More...

 
int mdlWin32_removeFunction (const void *funcP, const WNMIFunctionType funcType, const HWND hwnd, const UINT uMsg)
 
The mdlWin32_removeFunction function allows an application to deregister interest

in a particular Windows message for a given Window. More...

 
bool mdlWindow_hasNativeContent (MSWindowP windowP)
 Determines if a window has any native dialog content. More...
 
struct NativeContent * mdlWindow_getNativeContent (MSWindowP windowP)
 Retrieves a window's native dialog content. More...
 
void mdlWindow_setNativeContent (MSWindowP windowP, struct NativeContent *pContent)
 Sets the native dialog content in a window. More...
 
StatusInt mdlWindow_attachNativeContent (MSWindowP windowP, bool bSizeToContent)
 Attaches the previously set native dialog content to the window for processing. More...
 
StatusInt mdlWindow_getNativeContentRect (BSIRectP pRect, MSWindowP windowP)
 Retrieves the bounding rectangle of a window's native dialog content. More...
 
StatusInt mdlWindow_detachNativeContent (MSWindowP windowP)
 Detaches the previously attached native dialog content from the window. More...
 
StatusInt mdlWindow_destroyNativeContent (MSWindowP windowP)
 Detaches and destroys a window's native dialog content. More...
 
void mdlWindow_enterNativeModal ()
 Informs MicroStation that a native modal dialog that MicroStation does not control is receiving focus. More...
 

Detailed Description

Function Documentation

StatusInt mdlNativeWindow_initialize ( char *  pAppId)

Initializes the support system for native windows.

Parameters
[in]pAppIdArbitrary name for your application
Remarks
The native window support subsystem must be initialized before other mdlNativeWindow_* functions can be called.
Returns
SUCCESS, or ERROR if an error occurs.
int mdlWin32_addFunction ( const void *  funcP,
const WNMIFunctionType  funcType,
const HWND  hwnd,
const UINT  uMsg 
)

The mdlWin32_addFunction function allows an application to register interest

in a particular Windows message for a given Window.

Parameters
[in]funcPspecifies the listener function to be called.
[in]funcTypethe type of function being added.
[in]hwndthe Window handle of the window of interest.
[in]uMsgthe ID of the Window message of interest.
Returns
mdlWin32_addFunction returns 0 for success. To get extended error information, use the mdlWin32_getLastError function.
See also
mdlWin32_getLastError mdlWin32_removeFunction
Remarks
Required Library: mdlbltin.lib
int mdlWin32_removeFunction ( const void *  funcP,
const WNMIFunctionType  funcType,
const HWND  hwnd,
const UINT  uMsg 
)

The mdlWin32_removeFunction function allows an application to deregister interest

in a particular Windows message for a given Window.

Parameters
[in]funcPspecifies the listener function.
[in]funcTypethe type of function.
[in]hwndthe Window handle of the window of interest.
[in]uMsgthe ID of the Window message of interest.
Returns
mdlWin32_removeFunction returns 0 for success. To get extended error information, use the mdlWin32_getLastError function.
See also
mdlWin32_getLastError mdlWin32_addFunction
Remarks
Required Library: mdlbltin.lib
StatusInt mdlWindow_attachNativeContent ( MSWindowP  windowP,
bool  bSizeToContent 
)

Attaches the previously set native dialog content to the window for processing.

Parameters
[in]windowPpoints to the window with native dialog content.
[in]bSizeToContentindicates whether to resize the window to the size of the content.
Returns
SUCCESS, or non-zero if error occurred.
Remarks
Required Library: mdlbltin.lib
StatusInt mdlWindow_destroyNativeContent ( MSWindowP  windowP)

Detaches and destroys a window's native dialog content.

Parameters
[in]windowPpoints to the window with native dialog content.
Returns
SUCCESS, or non-zero if error occurred.
Remarks
Required Library: mdlbltin.lib
StatusInt mdlWindow_detachNativeContent ( MSWindowP  windowP)

Detaches the previously attached native dialog content from the window.

Remarks
The content is still set in the window and may be reattached using the mdlWindow_attachNativeContent function.
Parameters
[in]windowPpoints to the window with native dialog content.
Returns
SUCCESS, or non-zero if error occurred.
Remarks
Required Library: mdlbltin.lib
void mdlWindow_enterNativeModal ( )

Informs MicroStation that a native modal dialog that MicroStation does not control is receiving focus.

Returns
SUCCESS, or non-zero if error occurred.
Remarks
Required Library: mdlbltin.lib
struct NativeContent* mdlWindow_getNativeContent ( MSWindowP  windowP)

Retrieves a window's native dialog content.

Parameters
[in]windowPpoints to the window that may have native dialog content.
Returns
A pointer to the native dialog content object, or NULL if the window has no native dialog content.
Remarks
Required Library: mdlbltin.lib
StatusInt mdlWindow_getNativeContentRect ( BSIRectP  pRect,
MSWindowP  windowP 
)

Retrieves the bounding rectangle of a window's native dialog content.

Parameters
[in]pRectreceives the content's bounding rectangle.
[in]windowPpoints to the window that may have native dialog content.
Returns
SUCCESS, or non-zero if error occurred.
Remarks
Required Library: mdlbltin.lib
bool mdlWindow_hasNativeContent ( MSWindowP  windowP)

Determines if a window has any native dialog content.

Parameters
[in]windowPpoints to the window that may have native dialog content.
Returns
true if the window has native dialog content.
Remarks
Required Library: mdlbltin.libsid
void mdlWindow_setNativeContent ( MSWindowP  windowP,
struct NativeContent *  pContent 
)

Sets the native dialog content in a window.

Parameters
[in]windowPpoints to the window in which to set the native dialog content.
[in]pContentA pointer to the native dialog content object
Remarks
Required Library: mdlbltin.lib

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.