// JP opened flex table

Click to See Complete Forum and Search --> : SHAppBarMessage


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

mdmd
December 28th, 2002, 11:16 PM
My understanding is that the system taskbar is different from application Appbars. The Microsoft Office shortcut bar is an AppBar. SHAppBarMessage can be used for the system taskbar but I think the only messages it actually responds to is ABM_GETSTATE and ABM_GETTASKBARPOS. Your code will return TRUE when passed ABM_SETAUTOHIDEBAR because there is no other bar registered for the bottom; it will fail to autohide the system taskbar because it will not respond to this message.

//JP added flex table