I have an MFC MDI application. In order to place some controls in the view (MyView derived from CView), I need to know the size of the client area of the view. I will be using dimensions based on the client area's size in the Create function for the control.
When I use MyView.GetClientRect(), I get 1154 x 466. But the actual client size in pixels is 1410 x 725, as measured using both Spy++, and Paint on a screen shot.
How do get the size in pixels of the client area?
C++, Visual Studio 2010, 64-bit Windows 7 Pro