Article View: borland.public.cppbuilder.nativeapi
Article #8172Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook..
From: Oren Halvani
Date: Fri, 19 Nov 2004 23:34
Date: Fri, 19 Nov 2004 23:34
43 lines
2647 bytes
2647 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im
Newsbeitrag news:419e7adc$1@newsgroups.borland.com...
> Windows are not required to display a TaskBar button. They can hide it.
> There isn't really any sure-fire way to detect whether a given window has a
> TaskBar button present or not.
how does the build-in windows task-manager do that...? it shows
in the tab "Applications" ONLY PURE taskbar applications..
> I supposed what you could do is find the
> window's top-level parent window (if it has one) and then use
> IsWindowVisible(). Top-level visible app windows usually have a TaskBar,
> and simply hiding the window usually hides the TaskBar as well.
>
>
> Gambit
how can i do that exactly Remy..? look, i've tried:
/*************************************************/
if(chkTaskbar->Checked)
{
if(IsWindowVisible(hwnd)) // check first if visible...
{
LPARAM lParam;
// check if has a top-level parent window...
if(EnumChildWindows(hwnd, (WNDENUMPROC)EnumWindowsCallback, lParam))
{
GetWindowText(hwnd, Count, 256);
AnsiString str = Count; if(str.IsEmpty()) return true;
lstAktiveFenster->Items->Add(AnsiString(str));
}
}
}
/*************************************************/
whats wrong here ? this gives me an AV...
Oren
Technical Details
Message-ID:
<419e831e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<419ceea1@newsgroups.borland.com> <419cf173$1@newsgroups.borland.com> <419d2c69$1@newsgroups.borland.com> <419d3e01$1@newsgroups.borland.com> <419d8ce4@newsgroups.borland.com> <419dc340@newsgroups.borland.com> <419e5561$1@newsgroups.borland.com> <419e5ecc$1@newsgroups.borland.com> <419e6631@newsgroups.borland.com> <419e7adc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a94ec9a8ef193c6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Oren Halvani" <Spam@Me-Please.com> From: "Oren Halvani" <Spam@Me-Please.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <419ceea1@newsgroups.borland.com> <419cf173$1@newsgroups.borland.com> <419d2c69$1@newsgroups.borland.com> <419d3e01$1@newsgroups.borland.com> <419d8ce4@newsgroups.borland.com> <419dc340@newsgroups.borland.com> <419e5561$1@newsgroups.borland.com> <419e5ecc$1@newsgroups.borland.com> <419e6631@newsgroups.borland.com> <419e7adc$1@newsgroups.borland.com> Subject: Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook.. Date: Sat, 20 Nov 2004 00:34:05 +0100 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 217.86.53.131 Message-ID: <419e831e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100907294 217.86.53.131 (19 Nov 2004 15:34:54 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail