MdispSelectWindow()函数

Synopsis

Select an image buffer to display in a user-defined window.

Format

void MdispSelectWindow(DisplayId, ImageBufId, ClientWindowHandle)

MIL_ID DisplayId; Display identifier
MIL_ID ImageBufId; Image buffer identifier
HWND ClientWindow Handle User-defined window handle

Description

This function displays the specified image buffer contents in the specified user window, using the specified MIL display.

This function is valid only in a Windows environment.

The DisplayId parameter specifies the identifier of the display.

The ImageBufId parameter specifies the image buffer to display. To be displayable, this buffer must be an image buffer that has an M_IMAGE + M_DISP attribute.

If the specified image buffer is smaller in size than the target window size, the border outside the image is not modified. If the specified buffer is larger in size than the target window, the right and bottom portion of the buffer, the part that exceeds the window, is not displayed.

The ClientWindowHandle parameter specifies the handle of the user-defined window or child window. This window must have been created with the Windows API functions. If this parameter is set to zero, this function behaves like MdispSelect.

See also

MdispSelect, MdispDeselect

《MdispSelectWindow()函数》上有1条评论

评论已关闭。