15,978
社区成员
发帖
与我相关
我的任务
分享
void CXXXView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
GetClientRect(&m_rViewRegion);
CString str;
str.Format(_T("%d,%d,%d,%d"),m_rViewRegion.left,m_rViewRegion.top,m_rViewRegion.right,m_rViewRegion.bottom);
AfxMessageBox(str);
}
void CXXXView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
// GetClientRect(&m_rViewRegion);
// CMainFrame *pFrame = (CMainFrame*)(AfxGetApp()->m_pMainWnd);
// CMainFrame *pFrame=(CMainFrame *)AfxGetMainWnd();
// pFrame->GetClientRect(&m_rViewRegion);
CString str;
str.Format(_T("%d,%d,%d,%d"),m_rViewRegion.left,m_rViewRegion.top,m_rViewRegion.right,m_rViewRegion.bottom);
AfxMessageBox(str);
// InitUICtrl(m_rViewRegion);
}
void CXXXView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
if (this)
{
this->GetClientRect(&m_rViewRegion);
}
}
void CAPdu::OnSizing(UINT fwSide, LPRECT pRect)
{
CDialogApdu::OnSizing(fwSide, pRect);
// TODO: Add your message handler code here
myresize();
}
void CAPdu::myresize( void )
{
#define SPACE1 (8)
#define JIANGE1 (5)
#define TOP1 (20)
RECT client, tool;
RECT r1;
if( this )
{
this->GetClientRect( &client );
void CXXXView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
if (this)
{
this->GetClientRect(&m_rViewRegion);
InitUICtrl(cx,cy);//用来调整控件使得最大化
}
}
void CXXXView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
static int i(0);
CString str;
GetClientRect(&m_rViewRegion);
i++;
str.Format(_T("%d次:%d,%d,%d,%d"),i,m_rViewRegion.left,m_rViewRegion.top,m_rViewRegion.right,m_rViewRegion.bottom);
AfxMessageBox(str);
}