Click to return to the Reusing Browser Technology home page    
IWebBrowser2 Interface     IWebBrowser2::ExecWB Meth...     IWebBrowser2 Interface    
Web Workshop  |  Reusing Browser Technology

IWebBrowser2::ClientToWindow Method


Converts the client coordinates of a point to window coordinates.

Syntax

HRESULT ClientToWindow(
    int* pcx,
    int* pcy
);

Parameters

pcx
X-coordinate of the point to convert, in client coordinates. When ClientToWindow returns, this variable contains the x-coordinate of the point in window coordinates.
pcy
Y-coordinate of the point to convert, in client coordinates. When ClientToWindow returns, this variable contains the y-coordinate of the point in window coordinates.

Return Value

Returns S_OK to indicate that the operation was successful.

Remarks

Client coordinates are relative to the upper-left corner of the client area, and window coordinates are relative to the upper-left corner of a window.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.