🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Icon on toolbar

#11330
From: Boguslaw
Date: Fri, 13 Feb 2004 10:31
39 lines
1964 bytes
Hello,
I have a question

I have the main Form with a MainPanel ( TPanel )

In my DLL is defined one Form ( named VRWindow ): Initialise it with the
following code:

EXPORT HWND    Init( HWND ParentHandle, TWinControl * pWinControl )
{
    Application->Handle = ParentHandle;
    VRWindow = new TVRWindow( pWinControl );
    return VRWindow->Handle;
}

In Main Form I use the following code:

DWORD style;

    VRWindowHandle = Init( MainPanel->Handle, MainPanel );
    if( VRWindowHandle )
    {
           ::SetParent( VRWindowHandle, MainPanel->Handle );
        ShowWindow( VRWindowHandle, SW_MAXIMIZE );

        style = GetWindowLong( Handle, GWL_EXSTYLE );
        SetWindowLong( Handle , GWL_STYLE, WS_MAXIMIZEBOX );
        SetWindowLong( Handle , GWL_EXSTYLE, style | WS_EX_TOOLWINDOW  );

        ShowWindow( Handle, SW_SHOW );
        Visible = true;
    }

everything is ok, The form appears in MainPanel but on task bar STILL an
icon. I have o hide it. How to accomplish it?

Best regards

Boguslaw Fries
Technical Details
Message-ID: <402ca6b7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,745049cdb9be399c,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-13 02:39:35 PST
Reply-To: "Boguslaw" <B.Fries@luca-onlide.de>
From: "Boguslaw" <B.Fries@luca-onlide.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Icon on toolbar
Date: Fri, 13 Feb 2004 11:31:17 +0100
Lines: 41
Organization: Fries
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 217.82.87.100
Message-ID: <402ca6b7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076668087 217.82.87.100 (13 Feb 2004 02:28:07 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail