There is only need for one class. There must be a pointer to the specific window, if it is NULL the coordinates must be global anything else are client. It would be possible to create a readonly property isClient (bool) coordinates and a function transformToGlobal (CRect) which calculates a new rectangle with absolut coordinates.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=521777
Originator: NO
There is only need for one class. There must be a pointer to the specific window, if it is NULL the coordinates must be global anything else are client. It would be possible to create a readonly property isClient (bool) coordinates and a function transformToGlobal (CRect) which calculates a new rectangle with absolut coordinates.