winframe class : Top getter

Description

Gets a distance between the top of the screen and the top of a window.

Syntax

winframeInstance.Top

Arguments

None

Return value

ClassDescription
intA distance between the top of the screen and the top of a window.

Sample code

1:

wfpool wfp;

2:

winframe winframeIns = wfp.GetActive(); // Gets a window that has focus.

3:

int y = winframeIns.Top;

Notes

The unit is physical pixel.

Links for reference

None.

Copyright © Cooker All rights reserved.