Article View: borland.public.cppbuilder.nativeapi
Article #4436Re: MouseHover
From: Remy Lebeau (TeamB)
Date: Tue, 24 Jan 2006 01:34
Date: Tue, 24 Jan 2006 01:34
28 lines
2062 bytes
2062 bytes
"mf" <xxx.yyy@xyxy.xy> wrote in message news:43d57616$1@newsgroups.borland.com... > OK, I've changed a few things to be more explicit. Did you take note what what I told you about the mouse positioning? The mouse has to actually be over the button at the time you call TrackMouseEvent(). > This is all in WinMain. You did not show how you are creating the main window, nor did you show your code that processes the message queue. Also, you appear to be trying to catch the WM_MOUSEHOVER message in the window procedure of the *main window*, not the window procedure of the button itself. The message is posted directly to the HWND that you specify in the TRACKMOUSEEVENT structure. And your use of WM_MOUSEHOVER with WM_COMMAND is completely wrong. In any case, I had no trouble at all getting WM_MOUSEHOVER to work properly just now. Which is why I asked you to show COMPILABLE code - so that we can see everything you are atually doing, and tell you exactly what is wrong with it. Please show ALL of your test code. Post a fully compilable project in the "borland.public.attachments" newsgroup. Gambit
Technical Details
Message-ID:
<43d58367$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43d3967d$1@newsgroups.borland.com> <43d489a0$1@newsgroups.borland.com> <43d57616$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c2088a628df25e81 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43d3967d$1@newsgroups.borland.com> <43d489a0$1@newsgroups.borland.com> <43d57616$1@newsgroups.borland.com> Subject: Re: MouseHover Date: Mon, 23 Jan 2006 17:34:04 -0800 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43d58367$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138066279 68.69.17.41 (23 Jan 2006 17:31:19 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail