Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>mapdialogrect()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MapDialogRect()
Convert dialog co-ordinates to screen (pixel) co-ordinates
------------------------------------------------------------------------------

Syntax
MapDialogRect( <hWndDlg>, <aDlgRect> )   -->   aRect

Arguments
<hWndDlg> is the handle of the dialog.

<aDlgRect> is an array containing the co-ordinates of a
rectangle within the dialog, specified in the order  { left,
top, right, bottom }.

Returns
An array  { <nLeft>, <nTop>, <nRight>, <nBottom> } giving the
co-ordinates of the specified rectangle in screen co-ordinates.
Note the order of these co-ordinates may not be what you expect.

Description
This function returns the co-ordinates of a rectangle within a
dialog, converted to screen co-ordinates.

See the GetDialogBasUnits() function for more information on
the relationship between dialog units and screen units (pixels).

Example
// Get the width of part of a dialog
aRect = MapDialogRect( hDlg, { 0, 0, 10, 10 } )
nWidth = aRect[3] - aRect[1]


See Also: DialogBox() GetDialogBaseUnits()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson