void CTEXTDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CWnd *pClist = GetDlgItem(IDC_LIST1);
CWnd *pOK = GetDlgItem(IDOK);
CWnd *pCel = GetDlgItem(IDCANCEL);
if(pClist)
{
m_List.MoveWindow(CRect(0,0,cx/8*7,cy-5),TRUE);
TRACE("cx = %d,cy = %d\n",cx,cy);
}
if(pOK)
{
m_Ok.MoveWindow(CRect(cx/8*7+5,50,cy-5,80),TRUE);
}
if(pCel)
{
pCel->MoveWindow(CRect(cx/8*7+5,90,cy-5,120),TRUE);
}
}
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CWnd *pClist = GetDlgItem(IDC_LIST1);
CWnd *pOK = GetDlgItem(IDOK);
CWnd *pCel = GetDlgItem(IDCANCEL);
if(pClist)
{
m_List.MoveWindow(CRect(0,0,cx/8*7,cy-5),TRUE);
TRACE("cx = %d,cy = %d\n",cx,cy);
}
if(pOK)
{
m_Ok.MoveWindow(CRect(cx/8*7+5,50,cy-5,80),TRUE);
}
if(pCel)
{
pCel->MoveWindow(CRect(cx/8*7+5,90,cy-5,120),TRUE);
}
}
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CWnd *pClist = GetDlgItem(IDC_LIST1);
CWnd *pOK = GetDlgItem(IDOK);
CWnd *pCel = GetDlgItem(IDCANCEL);
if(pClist)
{
m_List.MoveWindow(CRect(0,0,cx/8*7,cy-5),TRUE);
TRACE("cx = %d,cy = %d\n",cx,cy);
}
if(pOK)
{
m_Ok.MoveWindow(CRect(cx/8*7+5,50,cx-5,80),TRUE);
}
if(pCel)
{
pCel->MoveWindow(CRect(cx/8*7+5,90,cx-5,120),TRUE);
}
}
{
CDialog::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
CWnd *pClist = GetDlgItem(IDC_LIST1);
CWnd *pOK = GetDlgItem(IDOK);
CWnd *pCel = GetDlgItem(IDCANCEL);
if(pClist)
{
m_List.MoveWindow(CRect(0,0,cx/8*7,cy-5),TRUE);
TRACE("cx = %d,cy = %d\n",cx,cy);
}
if(pOK)
{
m_Ok.MoveWindow(CRect(cx/8*7+5,50,cx-5,80),TRUE);
***
}
if(pCel)
{
pCel->MoveWindow(CRect(cx/8*7+5,90,cy-5,120),TRUE);
}
}