TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: STEVE MCCAULEY
from: ADAM MAJER
date: 1998-03-03 16:40:00
subject: Time Live on a Dlg

SM>        thanks for your reply. I'm not sure if I understand your 
suggestion.
SM>At this stage I have a derived dialog class (SprTimingDialog : public 
TDialo
SM>And certainly I can declare and define a response table for it. The 
difficul
SM>is that I need a message that is sent when the dialog finishes 
onstruction
SM>that I can handle it. While documentation mentions about 100 Ev_Wm_XXXXX
SM>windows messages very little is said about when and where they are sent 
from
SM>(I'm not sure that I understand the process - if there is not some 
exogenous
SM>sending of a Dlg_Construct_Completed message, perhaps I could send one of 
my
SM>own from SetUpWindow() ??)
SM>        Perhaps there are also messages sent from TDialog or from another
SM>ancestor. Do you know of any such messages?
The SetUpWindow() member function is called after the HWindow member
already exists ie. the Dialog box was already created and all handles
are enabled even though it's not yet displayed.
void Tclass :: SetUpWindow()
{
        // calls the base function to set up all the necessary variables
        // and the like for tje TDialog class
        TDialog::SetUpWindow();        <- it's good to call all base
                                          functions if overriden.
        .....
        . your stuff goes here .
        .....
}
Hope that helps!
 * SLMR 2.1a * I'm in shape ... round's a shape isn't it?
--- FMail 0.92
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.