Dim htask As IntPtr = FindWindow("HHTaskBar", Nothing)
ShowWindow(htask, SW_HIDE)
状态栏是隐藏掉了,但用一条蓝色的条挡在前面,还是显示不全,求教
5 个解决方案
#1
CreateWindowEx时设置窗口大小为全屏即可,以及属性为WS_EX_TOPMOST或者是WS_POPUP
#2
是的,你隐藏了任务栏,但你的窗体没有全屏,任务栏那里肯定变成了背景蓝色。
先隐藏任务栏,再将窗体全屏。
先隐藏任务栏,再将窗体全屏。
#3
修改注册表
shfullscreen
shfullscreen
#4
最好是从定制 OS 入手,这样最彻底。
#5
DLG.H
HWND m_hTaskBar;
HWND m_hSipBar;
DLG.CPP OnInitDialog函数中添加
m_hTaskBar = ::FindWindow (_T("HHTaskBar"), NULL);
m_hSipBar = ::FindWindow (_T("MS_SIPBUTTON"), NULL);
if (m_hTaskBar)
{
::ShowWindow(m_hTaskBar, SW_HIDE);
}
if (m_hSipBar)
{
::ShowWindow(m_hSipBar, SW_HIDE);
}
int nScreenX = GetSystemMetrics (SM_CXSCREEN);
int nScreenY = GetSystemMetrics (SM_CYSCREEN);
::SetWindowPos(GetSafeHwnd(), HWND_TOP, 0, 0, nScreenX, nScreenY, SWP_SHOWWINDOW);
HWND m_hTaskBar;
HWND m_hSipBar;
DLG.CPP OnInitDialog函数中添加
m_hTaskBar = ::FindWindow (_T("HHTaskBar"), NULL);
m_hSipBar = ::FindWindow (_T("MS_SIPBUTTON"), NULL);
if (m_hTaskBar)
{
::ShowWindow(m_hTaskBar, SW_HIDE);
}
if (m_hSipBar)
{
::ShowWindow(m_hSipBar, SW_HIDE);
}
int nScreenX = GetSystemMetrics (SM_CXSCREEN);
int nScreenY = GetSystemMetrics (SM_CYSCREEN);
::SetWindowPos(GetSafeHwnd(), HWND_TOP, 0, 0, nScreenX, nScreenY, SWP_SHOWWINDOW);
#1
CreateWindowEx时设置窗口大小为全屏即可,以及属性为WS_EX_TOPMOST或者是WS_POPUP
#2
是的,你隐藏了任务栏,但你的窗体没有全屏,任务栏那里肯定变成了背景蓝色。
先隐藏任务栏,再将窗体全屏。
先隐藏任务栏,再将窗体全屏。
#3
修改注册表
shfullscreen
shfullscreen
#4
最好是从定制 OS 入手,这样最彻底。
#5
DLG.H
HWND m_hTaskBar;
HWND m_hSipBar;
DLG.CPP OnInitDialog函数中添加
m_hTaskBar = ::FindWindow (_T("HHTaskBar"), NULL);
m_hSipBar = ::FindWindow (_T("MS_SIPBUTTON"), NULL);
if (m_hTaskBar)
{
::ShowWindow(m_hTaskBar, SW_HIDE);
}
if (m_hSipBar)
{
::ShowWindow(m_hSipBar, SW_HIDE);
}
int nScreenX = GetSystemMetrics (SM_CXSCREEN);
int nScreenY = GetSystemMetrics (SM_CYSCREEN);
::SetWindowPos(GetSafeHwnd(), HWND_TOP, 0, 0, nScreenX, nScreenY, SWP_SHOWWINDOW);
HWND m_hTaskBar;
HWND m_hSipBar;
DLG.CPP OnInitDialog函数中添加
m_hTaskBar = ::FindWindow (_T("HHTaskBar"), NULL);
m_hSipBar = ::FindWindow (_T("MS_SIPBUTTON"), NULL);
if (m_hTaskBar)
{
::ShowWindow(m_hTaskBar, SW_HIDE);
}
if (m_hSipBar)
{
::ShowWindow(m_hSipBar, SW_HIDE);
}
int nScreenX = GetSystemMetrics (SM_CXSCREEN);
int nScreenY = GetSystemMetrics (SM_CYSCREEN);
::SetWindowPos(GetSafeHwnd(), HWND_TOP, 0, 0, nScreenX, nScreenY, SWP_SHOWWINDOW);