🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Baloon Creating Continue

#8968
From: Pedram
Date: Wed, 25 Aug 2004 09:25
36 lines
2056 bytes
Hi again and very thx for your answers
In the code below I do many changes and troes but still nothing ...
What should I learn in additoinal????
( What changes is necessary still? )

void __fastcall TForm1::Button1Click(TObject *Sender)
{
   HWND hwndToolTips = CreateWindow(
        TOOLTIPS_CLASS, //Registred Class
        NULL,           //Window Name
        WS_POPUP | TTS_NOPREFIX | TTS_BALLOON | WS_VISIBLE,//Window Style
        0, 0,//x.y
        0, 0,//W,H    <-- Dont need any value?
        NULL,//Parent <-- Form1 ????
        NULL,//Menu
        NULL,//Instant
        NULL//Param
   );
   if (hwndToolTips){
      TOOLINFO ti={0};
      ti.cbSize = sizeof(ti);
      ti.uFlags = TTF_TRANSPARENT | TTF_CENTERTIP;
      ti.hwnd = this->Handle;
      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);
    ShowWindow(hwndToolTips,SW_SHOW);
}
Technical Details
Message-ID: <412c7a7b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e80ed548869f15aa
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pedram" <nover@hever.sever>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Baloon Creating Continue
Date: Wed, 25 Aug 2004 13:55:56 +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.56
Message-ID: <412c7a7b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1093433979 80.191.120.56 (25 Aug 2004 04:39:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail