🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Register windows hotkey problem

#12119
From: JD
Date: Mon, 29 Dec 2003 10:02
22 lines
1730 bytes
"Martin C" <martinc@aol.com> wrote:
> [...] now if I minimized this form to the system tray,
> sometime the message show and sometimes not when pressing
> the hotkey !

Do you really mean the system tray (the little box of icons by
the clock in the lower right corner of the screen)? If so, be
aware that the sample that comes with BCB is quite buggy.

> So what I really need to know how to overcome this problem
> on the ("Minimized window").

What I think Santa was trying to tell you is that you have 2
choices for establishing a HotKey. RegisterHotKey is thread
specific where as using WM_SETHOTKEY creates a global HotKey
that is associated with a particular window.

Your problem maybe your choice of implementing the HotKey but
I suspect that it's more likely how the systray is implemented.

~ JD
Technical Details
Message-ID: <3ff009e2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fea38e8$1@newsgroups.borland.com> <3fea54ef@newsgroups.borland.com> <3fead520@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fd964279e0f05daa
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-29 03:09:19 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Register windows hotkey problem
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.166.17.35     
References:  <3fea38e8$1@newsgroups.borland.com> <3fea54ef@newsgroups.borland.com> <3fead520@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3ff009e2$1@newsgroups.borland.com>
Date: 29 Dec 2003 03:02:58 -0700
X-Trace: newsgroups.borland.com 1072695778 207.105.83.66 (29 Dec 2003 03:02:58 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail