🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

MDI application save system resource.

#12471
From: Cactus
Date: Mon, 08 Dec 2003 13:09
30 lines
1609 bytes
Hi

    I move children Form to main Form body.
    that could save system resource?

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
    try
    {
         Application->Initialize();
         Application->CreateForm(__classid(TMainForm), &MainForm);
         Application->Run();
    }
    catch (Exception &exception)
    {
         Application->ShowException(&exception);
    }
    return 0;
}

// the ChildrenForm only occur when press the button.
//--------------------------------------------------------------------------
-
#include "ChildrenForm.h"
void __fastcall TArchForm::ChildrenBittonClick(TObject *Sender)
{
    Application->CreateForm(__classid(TChildrenForm), &ChildrenForm);
}
//--------------------------------------------------------------------------
-
Technical Details
Message-ID: <3fd477ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.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,50bbf5166b66d02,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-08 05:39:40 PST
From: "Cactus" <a@b.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: MDI application save system resource.
Date: Mon, 8 Dec 2003 21:09:05 +0800
Lines: 32
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: 61.143.224.24
Message-ID: <3fd477ec@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070888940 61.143.224.24 (8 Dec 2003 05:09:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail