Article View: borland.public.cppbuilder.nativeapi
Article #623AppBar auto hide
From: bar
Date: Sat, 09 Feb 2008 15:44
Date: Sat, 09 Feb 2008 15:44
32 lines
1669 bytes
1669 bytes
I have an appbar form, i dumped all the code from the local help of BCB 6.0
i need to implete auto hide feature for this form.
I am stuck, how the autohide works, i mean should i make the
snip:>>
//Handle setting here
abd.cbSize = sizeof(abd);
abd.hWnd = Handle;
abd.lParam = TRUE;
bool HideSuccess = SHAppBarMessage(ABM_SETAUTOHIDEBAR, &abd);
//After this i am calling HideAPPbar function.
HideAppbar();
void TForm1::HideAPPbar()
{
SHAppBarMessage(ABM_QUERYPOS, &abd);
abd.rc.left = 0
abd.rc.right = 0;
abd.rc.top = 0;
abd.rc.bottom = 0;
//for top position.
SHAppBarMessage(ABM_SETPOS, &abd);
MoveWindow(Handle, 0, 0,
GetSystemMetrics(SM_CXSCREEN),
3, TRUE);
}
Is this the correct way to auto hide the appbar.
Technical Details
Message-ID:
<47adca4e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,435e6b79953fde8f,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "bar" <shaikakbar250281@yahoo.co.in> Newsgroups: borland.public.cppbuilder.nativeapi Subject: AppBar auto hide Date: Sat, 9 Feb 2008 18:44:17 +0300 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 62.150.212.30 Message-ID: <47adca4e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1202571854 62.150.212.30 (9 Feb 2008 07:44:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail