Article View: borland.public.cppbuilder.nativeapi
Article #8966Baloon Creating Continue
From: Pedram
Date: Wed, 25 Aug 2004 07:21
Date: Wed, 25 Aug 2004 07:21
35 lines
1976 bytes
1976 bytes
I saw a code about Baloon Creating and it was so interesting to me
Also Gambit told a way to make it visible but I'm still wonder to make it
visible
void __fastcall TForm1::Button1Click(TObject *Sender)
{
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,WS_VISIBLE);
ShowWindow(hwndToolTips,SW_SHOWDEFAULT);
}
As you see I add WS_VISIBLE to the one line before end , and add the final
line personaly ...
Still nothing
How could I ? what shoudl I write?
thx
Technical Details
Message-ID:
<412c43ac@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e80ed548869f15aa,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Pedram" <nover@hever.sever> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Baloon Creating Continue Date: Wed, 25 Aug 2004 11:51:57 +0430 Lines: 38 X-Newsreader: Microsoft Outlook Express 4.72.3110.37 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.37 NNTP-Posting-Host: 80.191.120.39 Message-ID: <412c43ac@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1093419948 80.191.120.39 (25 Aug 2004 00:45:48 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail