Article View: borland.public.cppbuilder.nativeapi
Article #8967Re: Baloon Creating Continue
From: Remy Lebeau (TeamB)
Date: Wed, 25 Aug 2004 08:44
Date: Wed, 25 Aug 2004 08:44
29 lines
1675 bytes
1675 bytes
"Pedram" <nover@hever.sever> wrote in message
news:412c43ac@newsgroups.borland.com...
> TOOLINFO ti;
You should always zero out API structures before using them:
TOOLINFO ti = {0};
> ti.hwnd = this->WindowHandle;
Use the Handle instead of the WindowHandle:
ti.hwnd = this->Handle;
> SendMessage(hwndToolTips,TTM_ACTIVATE,(WPARAM)TRUE,WS_VISIBLE);
You should be specifying WS_VISIBLE when calling CreateWindow(), not via the
TTM_ACTIVATE message. In fact, the lParam value is ignored completely by
the TTM_ACTIVATE handler in the first place.
> ShowWindow(hwndToolTips,SW_SHOWDEFAULT);
If you are going to use ShowWindow() then use SW_SHOW or SW_SHOWNOACTIVATE
instead of SW_SHOWDEFAULT.
Gambit
Technical Details
Message-ID:
<412c5123$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!c03.atl99!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<412c43ac@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e80ed548869f15aa X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <412c43ac@newsgroups.borland.com> Subject: Re: Baloon Creating Continue Date: Wed, 25 Aug 2004 01:44:32 -0700 Lines: 31 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: <412c5123$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1093423395 68.69.17.41 (25 Aug 2004 01:43:15 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!c03.atl99!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail