15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Tabbed dialog inside of bigger dialog

rune.froysa@usit.uio.no
Tuesday, January 09, 1996

Also, does anyone know how to propperly use CTabCtrl to get a
tabed-dialog which is part of a bigger dialog-box. I can't get the
tabbing in and out of the dialog box to work propperly, and pressing
Escape closes the smaller dialog-box (nor can I find any docs or
references to the DS_CONTROL style).

/Rune
USIT, University of Oslo, Norway 



Christoph P. Kukulies -- kuku@gilberto.physik.rwth-aachen.de
Thursday, January 11, 1996

[Mini-digest: 2 responses]

> Also, does anyone know how to propperly use CTabCtrl to get a
> tabed-dialog which is part of a bigger dialog-box. I can't get the
> tabbing in and out of the dialog box to work propperly, and pressing
> Escape closes the smaller dialog-box (nor can I find any docs or
> references to the DS_CONTROL style).

Have you looked at the cmnctrls example in the MSVC-- 4.0 distribution?


--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de

-----From: "Aravind Balakrishnan(abalakri@us.oracle.com)" 

I was successful in using the DS_CONTROL style.. In VC 4, you can set the 
style of the dialog while editing the resource files.  This will ensure that 
the Tabs will function properly. 
 
You need to handle OnCancel() and OnOK() in the smaller dialog to prevent it 
from going away. 
 
Hope this helps. 
 
Cheers,   
Aravind.   
===   
 
Aravind Balakrishnan  
Systems Management Products, Oracle Corp. 
(415)506-0432 



John & Annette Elsbree -- elsbree@msn.com
Saturday, January 13, 1996

Rune -

You may need to investigate using the WS_EX_CONTROLPARENT extended style bit 
on your inner dialog.

mfcTeam.m_johnels;	// does not represent Microsoft

----------
From: 	owner-mfc-l@netcom.com on behalf of rune.froysa@usit.uio.no

Also, does anyone know how to propperly use CTabCtrl to get a
tabed-dialog which is part of a bigger dialog-box. I can't get the
tabbing in and out of the dialog box to work propperly, and pressing
Escape closes the smaller dialog-box (nor can I find any docs or
references to the DS_CONTROL style).



Niels Ull Jacobsen -- nuj@kruger.dk
Tuesday, January 16, 1996

> 
> Rune -
> 
> You may need to investigate using the WS_EX_CONTROLPARENT extended style bit 
> on your inner dialog.

Wouldn't you use WS_EX_CONTROLPARENT on the bigger dialog box and DS_CONTROL
on the embedded dialog?

> 
> mfcTeam.m_johnels;	// does not represent Microsoft
> 
> ----------
> From: 	owner-mfc-l@netcom.com on behalf of rune.froysa@usit.uio.no
> 
> Also, does anyone know how to propperly use CTabCtrl to get a
> tabed-dialog which is part of a bigger dialog-box. I can't get the
> tabbing in and out of the dialog box to work propperly, and pressing
> Escape closes the smaller dialog-box (nor can I find any docs or
> references to the DS_CONTROL style).

There are some references to it in the newest Win32 SDK documentation
and in the KB.. It's not very explicit about what it does, however:

DS_CONTROL:
Creates a dialog box that works well as a child window of another
dialog box, much like a page in a property sheet. This style allows
the user to tab among the control windows of a child dialog box, use
its accelerator keys, and so on.

--
Niels Ull Jacobsen, Kruger A/S

Everything stated herein is THE OFFICIAL POLICY of the entire Kruger
group and should be taken as legally binding in every respect. Pigs
will grow wings and fly.








John & Annette Elsbree -- elsbree@msn.com
Tuesday, January 23, 1996

Niels -

No. You want to use WS_EX_CONTROLPARENT on the inner dialog as well. This 
informs Windows that this window is a "parent of controls."

mfcTeam.m_johnels;	// does not represent Microsoft

----------
From: 	owner-mfc-l@netcom.com on behalf of Niels Ull Jacobsen

> You may need to investigate using the WS_EX_CONTROLPARENT extended style bit 

> on your inner dialog.

Wouldn't you use WS_EX_CONTROLPARENT on the bigger dialog box and DS_CONTROL
on the embedded dialog?



Niels Ull Jacobsen -- nuj@kruger.dk
Thursday, January 25, 1996

[Discussing embedding dialogs in other dialogs]

>>> You may need to investigate using the WS_EX_CONTROLPARENT extended
>>> style bit on your inner dialog.
 
>> Wouldn't you use WS_EX_CONTROLPARENT on the bigger dialog box and
>> DS_CONTROL on the embedded dialog?

> No. You want to use WS_EX_CONTROLPARENT on the inner dialog as well. This 
> informs Windows that this window is a "parent of controls."

Is this needed for dialogs? I would think that any dialog is
automatically a parent of controls. Should I add WS_EX_CONTROLPARENT
to all my dialogs? Or is it just that when I'm putting one dialog
inside another, the outer dialog looks for this style bit when it sets
up the tab order?

I'm a bit confused...

BTW, I messed up the quotes. The odd quotes are from John Elsbree -
then even ones are from me :-)

--
Niels Ull Jacobsen, Kruger A/S

Everything stated herein is THE OFFICIAL POLICY of the entire Kruger
group and should be taken as legally binding in every respect. Pigs
will grow wings and fly.








John & Annette Elsbree -- elsbree@msn.com
Sunday, January 28, 1996

From: 	owner-mfc-l@netcom.com on behalf of Niels Ull Jacobsen

> Is this needed for dialogs? I would think that any dialog is
> automatically a parent of controls. Should I add WS_EX_CONTROLPARENT
> to all my dialogs? Or is it just that when I'm putting one dialog
> inside another, the outer dialog looks for this style bit when it sets
> up the tab order?

That's right: it's only needed for dialogs within dialogs, so Windows can 
figure out how to manage the tab order. I didn't say it very clearly, but 
that's what I meant.

> BTW, I messed up the quotes. The odd quotes are from John Elsbree -

My friends often tell me that I say odd things. Thanks for confirming this! 


mfcTeam.m_johnels;	// does not represent Microsoft




| Вернуться в корень Архива |