zoukankan      html  css  js  c++  java
  • Wince 6.0 窗口最大化显示

    在InitDialog用如下代码实现:

    CRect   m_FullScreenRect;   //全屏区域     

    CRect   WindowRect;       

    GetWindowRect(&WindowRect);       

    CRect   ClientRect;     

    RepositionBars(0,   0xffff,   AFX_IDW_PANE_FIRST,   reposQuery,   &ClientRect);     

    ClientToScreen(&ClientRect);       

    int   nFullWidth=GetSystemMetrics(SM_CXSCREEN);     

    int   nFullHeight=GetSystemMetrics(SM_CYSCREEN);     

    m_FullScreenRect.left   =   WindowRect.left-ClientRect.left;     

    m_FullScreenRect.top=WindowRect.top-ClientRect.top;     

    m_FullScreenRect.right=WindowRect.right-ClientRect.right+nFullWidth;     

    m_FullScreenRect.bottom=WindowRect.bottom-ClientRect.bottom+nFullHeight;     

    this->SetWindowPos(&wndBottom,m_FullScreenRect.left,m_FullScreenRect.top,m_FullScreenRect.Width(),m_FullScreenRect.Height(),SWP_SHOWWINDOW); 

  • 相关阅读:
    053-649
    053-648
    053-647
    053-646
    053-645
    053-644
    053-643
    053-642
    053-641
    053-640
  • 原文地址:https://www.cnblogs.com/amishe/p/3278831.html
Copyright © 2011-2022 走看看