MFC 中我用这段代码实现了全屏无边框,请问怎么退出去全屏呢 请赐教 俺认真学学

    else if(FullScreen==1)
    {
        rect.left = 0;
        rect.right= GetSystemMetrics(SM_CXSCREEN);
        rect.top = 0;
        rect.bottom = GetSystemMetrics(SM_CYSCREEN);

        FreerdpWidget *widget = new FreerdpWidget;  
        widget->_freerdp.init(workdir.c_str(),programpath.c_str(),NULL, url.c_str(), name.c_str(), 
            pass.c_str(),domain.c_str(), rect.right, rect.bottom);
//      widget->Create(NULL,WS_POPUP|WS_THICKFRAME, 0, hWnd, rect, 0);// 

        widget->Create(NULL,WS_OVERLAPPEDWINDOW, 0, hWnd, rect, 0);//

        SetWindowPos(widget->m_hWnd,HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);//
        CenterWindow(widget->m_hWnd);
        ShowWindow(widget->m_hWnd, SW_SHOWNORMAL);// 
        err = 1;
查看全部
zzblydia
zzblydia
2015/08/04 08:49
  • mfc退出全屏
  • 点赞
  • 收藏
  • 回答
    私信

2个回复