The following code works fine in a view when the view is in a splitter window, but when the view is created in an SDI style the child window gets offset by (2,2).
This code is called from a child window.
myrect -= parentrect.TopLeft();
If the top left corner of the child starts as 491,515 it will end up at 493,517
The only difference is whether the view is created in a splitter window or not. Any suggestions