xref: /aoo41x/main/vcl/os2/howto.txt (revision cdf0e10c)
1*cdf0e10cSrcweir
2*cdf0e10cSrcweirVCL positioning
3*cdf0e10cSrcweir
4*cdf0e10cSrcweirWindow coordinates are parent relative, with exception of maState fields, they
5*cdf0e10cSrcweirhave screen coordinates.
6*cdf0e10cSrcweir
7*cdf0e10cSrcweirEvery window has a parent window, usually the client area of an existing window,
8*cdf0e10cSrcweirotherwise the desktop window.
9*cdf0e10cSrcweir
10*cdf0e10cSrcweirWhen a window is to be sized/moved, SetPosSize is called.
11*cdf0e10cSrcweirSince coordinates are the position/size of client area, we need to calculate
12*cdf0e10cSrcweircurrent window frame size/position and map to screen coordinates using the
13*cdf0e10cSrcweirowner window position as offset.
14