Converts client sizes into window sizes.
Object.ClientToWindow ( pcx, pcy )
The ClientToWindow method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
ALog |
ALog control |
|
pcx |
Val Long |
The 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 |
Val Long |
The 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. |
Converts the client coordinates of a point to window coordinates. Client coordinates are relative to the upper-left corner of the client area; window coordinates are relative to the upper-left corner of a window.
The following example will converts client sizes into window sizes for the ALog control:
log1.ClientToWindow(lxpixels, lypixels)