I think the magic number are because GetWindowRect gets the rectangle for the whole window, not the client area, that is in included the title area, frame etc. MoveWindow is relative to the parents client area.
The best way to work these out these magic numbers is with calls to GetWindowInfo and AdjustWindowRectEx. From these it is possible to work out the offsetsto the client area.
Hi ! I have just gone through your article.
It is really Impressive Article.
Now, What i have problem.
It is that when i put MSFlexgridControl into Propertypage then that page itself is going to be disappeared from the sheet.Please, give me the solution...