diff options
Diffstat (limited to 'vcl/os2/howto.txt')
-rw-r--r-- | vcl/os2/howto.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcl/os2/howto.txt b/vcl/os2/howto.txt new file mode 100644 index 000000000000..8711e8ea3b09 --- /dev/null +++ b/vcl/os2/howto.txt @@ -0,0 +1,13 @@ + +VCL positioning + +Window coordinates are parent relative, with exception of maState fields, they +have screen coordinates. + +Every window has a parent window, usually the client area of an existing window, +otherwise the desktop window. + +When a window is to be sized/moved, SetPosSize is called. +Since coordinates are the position/size of client area, we need to calculate +current window frame size/position and map to screen coordinates using the +owner window position as offset. |