🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8168

Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook..

#8168
From: Oren Halvani
Date: Fri, 19 Nov 2004 20:16
47 lines
2433 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im
Newsbeitrag news:419dc340@newsgroups.borland.com...

> EnumChildWindows(), which (again) you would have found had you read the API
> documentation, which lists the available window-related functions.
>
> >       if(GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_APPWINDOW );
>
> You have a semicolon at the end of the if() statement.  You need to remove
> it.
>
>
> Gambit


even now i still get 72 items listed where there are only 7 programs
in the taskbar...

/************************************************/
bool __fastcall TfrmTrashHate::ProzesseZaehlen(HWND hwnd)
{
   char Count[256];

   if(chkTaskbar->Checked)
   {
      if(GetWindowLong(hwnd, GWL_EXSTYLE) && WS_EX_APPWINDOW)
      {
        GetWindowText(hwnd,Count,256);
        AnsiString str = Count;
        if(str.IsEmpty()) return true;
        lstAktiveFenster->Items->Add(AnsiString(str));
      }
   }
   else
   {
     GetWindowText(hwnd,Count,256); AnsiString str = Count;
     if (str.IsEmpty()) return true;
     lstAktiveFenster->Items->Add(AnsiString(str));
   }
   return true;
}
/************************************************/

do i need an additional parameter inside: GetWindowLong( ) ?


Oren
Technical Details
Message-ID: <419e5561$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
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>

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>
Subject: Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook..
Date: Fri, 19 Nov 2004 21:16:33 +0100
Lines: 49
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.234.123.210
Message-ID: <419e5561$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100895585 217.234.123.210 (19 Nov 2004 12:19:45 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail