void CXXXDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CRect rectDlg;
CPaintDC dc(this);
GetClientRect(rectDlg);
CRect rectBar;
//工具栏
CToolBar *m_pwndToolBar = (CToolBar *)AfxGetApp()-m_pMainWnd-
GetDescendantWindoW(AFX_IDW_TOOLBAR);
m_pwndToolBar-GetClientRect(&rectBar);
//如果不加4...[ 查看全文 ]