1 What is a customer zone/non-customer zone?
2 what is the difference between the customer zone of the window (frame/frame) and the customer zone of the view?
For multi-document (MDI) ApplicationsProgram:
Figure 1
Figure 2
1. the customer area of the window frame refers to the gray area in the figure: that is, the area in the blue box in Figure 2. The non-customer area of the frame refers to the window area outside the Blue Box, including the program icon, title bar, menu, maximum and minimum/Close button, two boxes and two State bars.
2. the customer area of the view refers to the green area in the figure: the area in the red box in Figure 2. The non-customer area of the view refers to the area outside the red box of the view, including the file icon, title Bar, three buttons and two scroll bars.
3. it can be seen that the toolbar (tool bar) does not belong to the non-customer area of the framework. It is a "brother" in the customer area of the framework with the view ". it is also a window. You may drag the toolbar and drag it out of the frame window area.
4. In future programming, for cclientdc, cwindowdc, getclientdc (), getwindowdc () should be easily separated.
The above is my own search and summary. I hope it will help some people. If there is anything wrong, please correct me.
5. in a single document, the areas referred to by each concept can be analyzed similarly.
from: http://hi.baidu.com/chenfalei/blog/item/da8440fb331f0767024f56e5.html