隐藏 Windows任务栏中的窗口显示
作者:互联网
CoInitialize(NULL);
ITaskbarList* pTaskBarList = NULL;
HRESULT hr = CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList, (void**)&pTaskBarList);
if (SUCCEEDED(hr))
{
pTaskBarList->HrInit();
if (Show)
{
pTaskBarList->AddTab(m_hWnd);
}
else
{
pTaskBarList->DeleteTab(m_hWnd);
}
pTaskBarList->Release();
}
CoUninitialize();
标签:CoUninitialize,Windows,hWnd,ITaskbarList,hr,NULL,任务栏,隐藏,pTaskBarList 来源: https://blog.csdn.net/zeqi1991/article/details/121870184