在一个FormView中用一个STATIC来模拟改变上现两个树型控件的大小.可是屏幕会不停地闪.效果不好.
代码如下.
CRect rectClient;
GetClientRect(&rectClient);
ny = ny<1 ? rectClient.Height()*1/2 : ny;
ny = ny>rectClient.bottom-15 ? rectClient.bottom-15 : (ny<40 ? 41 : ny);
resetButton=ny>rectClient.bottom-15?2:(ny<40?1:-1);
pTreeProIndex->SetWindowPos(NULL,0,30,rectClient.right,ny-30,SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSENDCHANGING);
pStaticScope->SetWindowPos(NULL,0,ny+1,rectClient.right,15,SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSENDCHANGING);
pTreeScope->SetWindowPos(NULL,0,ny+17,rectClient.right,rectClient.bottom-17-ny,SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOSENDCHANGING);
ny是捕获OnMouseMove得来的.请问,怎么能让效果做得更好一些.