none
怎样实现全屏 RRS feed

  • 问题

  • :Tongue TiedHFullScreen(m_hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);

    CRect rcScreen;
    SetRect(&rcScreen, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
    ::MoveWindow(m_hWnd, rcScreen.left, rcScreen.top, rcScreen.right-rcScreen.left, rcScreen.bottom-rcScreen.top, TRUE);

    这是全屏的代码,但是最底下的兰色的窗口不能隐掉,帮帮忙!

     

    2007年8月7日 8:54

答案

  • HWND hCommandBarWnd = ::FindWindow(_T("menu_worker"), NULL);
    ::CommandBar_Show(hCommandBarWnd, FALSE);

    :Tongue TiedHFullScreen(m_hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON | SHFS_HIDESTARTICON);

    CRect rcScreen;
    SetRect(&rcScreen, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN));
    ::MoveWindow(m_hWnd, rcScreen.left, rcScreen.top, rcScreen.right-rcScreen.left, rcScreen.bottom-rcScreen.top, TRUE);

     

    2007年8月7日 9:10