In the past few days, in order to design an interface, I encountered a problem "how to put the three-dimensional border (3D lines) of the top of the MDI parent form workspace (3D line). I thought that the MDI parent window provided this attribute, but did not find it. I found it on the community. Some people have asked (how to remove the 3D effect of the MDI Sub-form customer area?) Look, if the law is found Cover the entire form (perhaps I didn't understand). Open MSDN and find that the MDI form is quite complex, and the client area is a special form, including in the MDI parent form), intended to learn the composition and principle of the MDI form.
Today, I will say my solution: (1) Put the Panle Control (2) on the MDI form (2) Set the location attribute, if only menus are available (0, 0), if there is also a toolbar, then Y coordinate The same is the same as the height of the toolbar. At the same time, the height is 2. (3) Set panel1.width = this.width; (4) OK in the form sizechanged event.
Next, inherit the code of the NativeWindow Custom MDICLIENT form.