处理对话框的WM_SIZE消息 得到对话框的大小 然后treectrl MoveWindow or SetWindowPos
OnSize(UINT nType, int cx, int cy) nTypeSpecifies the type of resizing requested. This parameter can be one of the following values: SIZE_MAXIMIZED Window has been maximized. SIZE_MINIMIZED Window has been minimized. SIZE_RESTORED Window has been resized, but neither SIZE_MINIMIZED nor SIZE_MAXIMIZED applies. SIZE_MAXHIDE Message is sent to all pop-up windows when some other window is maximized. SIZE_MAXSHOW Message is sent to all pop-up windows when some other window has been restored to its former size.
得到对话框的大小
然后treectrl MoveWindow or SetWindowPos
SIZE_MINIMIZED Window has been minimized.
SIZE_RESTORED Window has been resized, but neither SIZE_MINIMIZED nor SIZE_MAXIMIZED applies.
SIZE_MAXHIDE Message is sent to all pop-up windows when some other window is maximized.
SIZE_MAXSHOW Message is sent to all pop-up windows when some other window has been restored to its former size.