close
from: https://www.newton.com.tw/wiki/CRect  
CRect  

src.cpp 

ResetAllWindowRect( cx,  cy); 

image

 

 

 

 

 

需在header, cpp 繼承以下msg

head.h

afx_msg void OnSize(UINT nType, int cx, int cy);

 

src.cpp

BEGIN_MESSAGE_MAP(Parameter, CDialog)
    ON_WM_SIZE()
END_MESSAGE_MAP()


void Parameter::OnSize(UINT nType, int cx, int cy) 
{
    CDialog::OnSize(nType, cx, cy);

   ResetAllWindowRect( cx,  cy);

}

 
 

 

arrow
arrow
    全站熱搜

    天才R 發表在 痞客邦 留言(0) 人氣()