Home > Software engineering >  MFC interface changes size DockPane don't follow
MFC interface changes size DockPane don't follow

Time:09-21

Put several DockPane MFC interface, at ordinary times can display normally, but change the window size, drag the window to zoom in, for example, or drag the window to narrow, small DockPane interface can't update back, it become a blank, this time if I minimize the interface, and then click show, and the location of the DockPane and be able to display properly, what reason is this excuse me?

Effects such as the following a few picture
Inside, according to the normal PaneDock interface on the right side of the content and the button can be displayed below,



Below is not normal, according to the content of the side again all have no, and DockPane "PLC data" below the button, but if I drop interface to minimize or covered by other Windows, and then let him show up again, he normally shows, what reason is this excuse me? Where to add the function?



Beg god to guide the ah, just learning MFC, to the realization of the internal principle of don't understand ah,




CodePudding user response:

Their top,

Yesterday debugging, the single document procedure in adjusting system at found interface PaneDock can adjust the size, but I didn't delete what ah, don't know why we are not able to adjust the size, or because I added in EraseBackGound change background color? Amend the background to white,

CodePudding user response:

Also it is really in MainFrm refresh myself, background PaneDock to brush away the but if I want to get only interface in addition to the Pane, what function should be used???????


I now is to use the
CRect the rect.
GetClientRect (& amp; The rect);

PDC - & gt; SetBkMode (TRANSPARENT);

CBrush brBtnShadow (RGB (255, 255, 255));
PDC - & gt; FillRect (& amp; The rect, & amp; BrBtnShadow);

CodePudding user response:

Baidu search relevant keywords,
  • Related