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); 

  • 相关阅读:
    spark实验四(2)
    spark实验四
    神奇的一天
    Spark实验三
    Scala实验任务三
    Scala实验任务二
    Scala语言实验任务一
    kettle的基本使用
    质量属性之安全性战术
    datax相关
  • 原文地址:https://www.cnblogs.com/amishe/p/3278831.html
Copyright © 2011-2022 走看看