
void CTreeCtrlDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
CWnd* pCtl = GetDlgItem(IDC_STATIC_IMAGE2);
if (!pCtl) { return; }
CRect rectCtl;
pCtl->GetWindowRect(&rectCtl);
ScreenToClient(&rectCtl);
pCtl->MoveWindow(rectCtl.left, rectCtl.top, cx - 2 * rectCtl.left, cy - rectCtl.top - rectCtl.left, TRUE);
return;
}