petweg
December 21st, 2002, 11:13 AM
Hi,
has anybody experience with SHAppBarMessage? I try to set auto-hide property of my taskbar to TRUE:
APPBARDATA abd;
abd.cbSize=sizeof(abd);
abd.hWnd=FindWindow("Shell_TrayWnd", NULL);
abd.uEdge=ABE_BOTTOM;
abd.lParam=TRUE;
UINT ret=0;
ret=SHAppBarMessage(ABM_SETAUTOHIDEBAR,&abd);
ret=SHAppBarMessage(ABM_GETAUTOHIDEBAR,&abd);
This seems to work.
After the first call, ret is TRUE.
After the second call, ret is abd.hWnd, indicating that the taskbar is the registered auto-hide bar for this edge.
But the taskbar is NOT auto-hiding. And when i right-click on it, the property dialog shows the auto-hide property unchecked.
Any help appreciated
Bye
Peter
has anybody experience with SHAppBarMessage? I try to set auto-hide property of my taskbar to TRUE:
APPBARDATA abd;
abd.cbSize=sizeof(abd);
abd.hWnd=FindWindow("Shell_TrayWnd", NULL);
abd.uEdge=ABE_BOTTOM;
abd.lParam=TRUE;
UINT ret=0;
ret=SHAppBarMessage(ABM_SETAUTOHIDEBAR,&abd);
ret=SHAppBarMessage(ABM_GETAUTOHIDEBAR,&abd);
This seems to work.
After the first call, ret is TRUE.
After the second call, ret is abd.hWnd, indicating that the taskbar is the registered auto-hide bar for this edge.
But the taskbar is NOT auto-hiding. And when i right-click on it, the property dialog shows the auto-hide property unchecked.
Any help appreciated
Bye
Peter