Query Related to Setting position of a my window above Taskbar in Vista
-
Hi all, I want to set position of my window on top of Taskbar window also.. I have used
::SetWindowPos(hwnd, HWND_TOPMOST, X, Y, cx, cy, SWP_NOSIZE | SWP_SHOWWINDOW | SWP_DRAWFRAME);
this is working fine in case of XP but in vista my window gets overlapped by the TaskBar. Note: In both XP & Vista I have enabled "Keep the Taskbar on top of all other windows" property of Taskbar. I want my window tobe work like Task Manager Window. Please provide some solution to me. Thanks in advance.
-
Hi all, I want to set position of my window on top of Taskbar window also.. I have used
::SetWindowPos(hwnd, HWND_TOPMOST, X, Y, cx, cy, SWP_NOSIZE | SWP_SHOWWINDOW | SWP_DRAWFRAME);
this is working fine in case of XP but in vista my window gets overlapped by the TaskBar. Note: In both XP & Vista I have enabled "Keep the Taskbar on top of all other windows" property of Taskbar. I want my window tobe work like Task Manager Window. Please provide some solution to me. Thanks in advance.
It took me a bit of digging, as some terminology can be a bit odd... But you might want to let explorer do most of the work for you, by writing your program as a "Desk Band". Have a look at the following msdn article, and scroll down aways until you get to the desk band section. http://msdn.microsoft.com/en-us/library/cc144099(VS.85).aspx[^] I'd also look at Michael Dunn's shell programming articles - possibly the best articles since "How to slice bread using only your debugger". Iain.
-
Hi all, I want to set position of my window on top of Taskbar window also.. I have used
::SetWindowPos(hwnd, HWND_TOPMOST, X, Y, cx, cy, SWP_NOSIZE | SWP_SHOWWINDOW | SWP_DRAWFRAME);
this is working fine in case of XP but in vista my window gets overlapped by the TaskBar. Note: In both XP & Vista I have enabled "Keep the Taskbar on top of all other windows" property of Taskbar. I want my window tobe work like Task Manager Window. Please provide some solution to me. Thanks in advance.
Try disabling
"Always on top"
feature of taskbar when your application starts and restore it when your application exits. Check this article[^] about how to do it. Open the article and search for "Taskbar always on top". Hope it will help. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Try disabling
"Always on top"
feature of taskbar when your application starts and restore it when your application exits. Check this article[^] about how to do it. Open the article and search for "Taskbar always on top". Hope it will help. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
Thanks for your reply, I have tried this
static HWND hShellWnd = ::FindWindow(_T("Shell_TrayWnd"), NULL);
if(hShellWnd != NULL)
{
// Set taskbar always on top off
::SendMessage(hShellWnd, 0x2b1, 8, 0);
::SendMessage(hShellWnd, 0x581/*WM_USER+385*/, 1, 0);
::SendMessage(hShellWnd, 0x550/*WM_USER+336*/, 0, 10001);
::SendMessage(hShellWnd, 0x579/*WM_USER+377*/, 0, 0);
}::SetWindowPos(hwnd, HWND_TOPMOST, X, Y, cx, cy, SWP_NOSIZE|SWP_SHOWWINDOW|SWP_DRAWFRAME);
but it won't work,actually I think that "always on top off" code is not working..
-
Thanks for your reply, I have tried this
static HWND hShellWnd = ::FindWindow(_T("Shell_TrayWnd"), NULL);
if(hShellWnd != NULL)
{
// Set taskbar always on top off
::SendMessage(hShellWnd, 0x2b1, 8, 0);
::SendMessage(hShellWnd, 0x581/*WM_USER+385*/, 1, 0);
::SendMessage(hShellWnd, 0x550/*WM_USER+336*/, 0, 10001);
::SendMessage(hShellWnd, 0x579/*WM_USER+377*/, 0, 0);
}::SetWindowPos(hwnd, HWND_TOPMOST, X, Y, cx, cy, SWP_NOSIZE|SWP_SHOWWINDOW|SWP_DRAWFRAME);
but it won't work,actually I think that "always on top off" code is not working..
This is a bad idea... To quote Raymond Chen. "What if another program does this?" When they close, it will put back the taskbar how it found it, and you'd mysteriously stop working. Or worse, you'd close first, and mess *their* program up. Naughty programmer! Iain.
-
This is a bad idea... To quote Raymond Chen. "What if another program does this?" When they close, it will put back the taskbar how it found it, and you'd mysteriously stop working. Or worse, you'd close first, and mess *their* program up. Naughty programmer! Iain.
I aggree with you, ;P but I have just tried weather it works or not.. I am also going through the link which you have provided but couldn't find any solution yet. :(