🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#8146
From: Oren Halvani
Date: Fri, 19 Nov 2004 06:03
49 lines
2577 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag
news:419d3e01$1@newsgroups.borland.com...

>
> > what about the RegisterHotkey( ) does it overwrite existing hotkeys or
> not..?

> No, it fails if the requested hotkey is already registered.

Ohhh, i was right :-)


> > how can i get the HWND's of unknown controls..?
>
> By not allowing them to be unknown in the first place.  Somewhere, somehow,
> your program has to be told which window to send to, and then you can
> retreive the HWND for it.  If there is only one RichEdit control on a
> window, then finding it automatically is simple enough, just fine the parent
> window first and then enumerate its child windows looking for the RICHEDIT
> class name.  But if there are multiple RichEdits in a window, then something
> has to tell your code which one to use.

how do i enumerate the child windows/controls of a specific window..???

>
> >  if(GetWindowLong(hwnd, GWL_EXSTYLE) && WS_EX_APPWINDOW );

> You need to use the '&' operator, not the '&&' operator.

i changed it now....

   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));
      }
   }

but it still displaying me ALL available processes, NOT those that are in
the taskbar...what wrong now...?



Oren
Technical Details
Message-ID: <419d8ce4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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>

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>
Subject: Re: Several ways to define 2 system-wide hotkeys, without to install keyboard-hook..
Date: Fri, 19 Nov 2004 07:03:31 +0100
Lines: 51
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: <419d8ce4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100844260 217.234.123.210 (18 Nov 2004 22:04:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail