Article View: borland.public.cppbuilder.nativeapi
Article #8989Creating a Balloon Tip
From: Tassilo J. Klein
Date: Sat, 14 Aug 2004 12:11
Date: Sat, 14 Aug 2004 12:11
37 lines
2109 bytes
2109 bytes
Hi there,
does somebody know how to write a working balloon tip? According to MS
it is supposed to work like that:
HWND hwndToolTips = CreateWindow(TOOLTIPS_CLASS,
NULL,
WS_POPUP | TTS_NOPREFIX | TTS_BALLOON,
0, 0,
0, 0,
NULL, NULL,
NULL,
NULL);
if (hwndToolTips)
{
TOOLINFO ti;
ti.cbSize = sizeof(ti);
ti.uFlags = TTF_TRANSPARENT | TTF_CENTERTIP;
ti.hwnd = this->WindowHandle;
ti.uId = 0;
ti.hinst = NULL;
ti.lpszText = "test balloon message";
::SetWindowPos(hwndToolTips, HWND_TOPMOST,0,0,0,0,SWP_NOMOVE |
SWP_NOSIZE | SWP_NOACTIVATE);
::GetClientRect(this->Handle, &ti.rect);
SendMessage(hwndToolTips, TTM_ADDTOOL, 1, (LPARAM) &ti );
}
SendMessage(hwndToolTips,TTM_ACTIVATE,(WPARAM)TRUE,0);
but somehow there appears nothing on my screen, which in fact is not
much :-). Does anybody have an idea?
Thanks in advance,
Tassilo
Technical Details
Message-ID:
<cfkvh9$n9j$05$1@news.t-online.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cef9c24a1db92ed5,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: "Tassilo J. Klein" <nospamTJKlein@web.de> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Creating a Balloon Tip Date: Sat, 14 Aug 2004 14:11:30 +0200 Organization: T-Online Lines: 37 Message-ID: <cfkvh9$n9j$05$1@news.t-online.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1092485481 05 23859 AYLFX5JLj0MuEez 040814 12:11:21 X-Complaints-To: usenet-abuse@t-online.de X-ID: rwnrwiZageys1MzwA7JpMtULBz8Nucvd3tMRQgMWQqe3xqvOPjVNr9 User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en