From: Joseph M. Newcomer on
I modified the CTabView code to run within a dialog-based app.
joe

On Mon, 14 Jun 2010 12:52:04 -0500, "JCO" <someone(a)somewhere.com> wrote:

>
>Can you use that if your not using the MFC's document/view architecture? My
>base application uses CDialog.
>I sent you an email too.
>
>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>news:2njc165r0dlmc9pd165dloteho9nqrs0s3(a)4ax.com...
>> What I do is use a tab control then use my modified CTabView class to
>> interface to it. You
>> can find the source for this on several of my projects on my MVP Tips
>> site, most notably
>> my Locale Explorer. Or send me an email and I'll send it to you. I've
>> found this much
>> easier than fighting to make a CPropertySheet do what I want.
>> joe
>>
>> On Sun, 13 Jun 2010 20:37:56 -0500, "JCO" <someone(a)somewhere.com> wrote:
>>
>>>I have an application (MFC dialog type) that needs to be modified. The
>>>current app provides the customer a type of "Test" to be performed. As
>>>part
>>>of an Add-On, I want to add a 3-tab control (CPropertySheet &
>>>CPropertyPage)
>>>where the existing "Test 1" is done on tab 1. Then I will add a "Test 2"
>>>&
>>>"Test 3" on Tab 2 and Tab 3. The user can choose which "Test" to do based
>>>on selecting the proper Tab.
>>>
>>>I created the CMyPropertySheet along with the 3-Tabs (CTab1, CTab2,
>>>CTab3).
>>>
>>>The problem is this. Right now the 3-tab dialog comes up independent by
>>>itself. After I close it, the application comes up. This is not what I
>>>want. I want the 3-tabs to be part of the main application. What did I
>>>do
>>>wrong. I initialize the 3-tab dialog in ::InitDialog() of the main
>>>application. Is that wrong?
>>>
>>>Thanks
>>>
>>>
>> Joseph M. Newcomer [MVP]
>> email: newcomer(a)flounder.com
>> Web: http://www.flounder.com
>> MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: JCO on
I need to run but will get back to this later tonight or tomorrow. I sent
you my email and will wait for you to send me the application so I can
review. Thanks

"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
news:f5sc16t5u1fadjflb84vhkmg0sjc73i15s(a)4ax.com...
> I modified the CTabView code to run within a dialog-based app.
> joe
>
> On Mon, 14 Jun 2010 12:52:04 -0500, "JCO" <someone(a)somewhere.com> wrote:
>
>>
>>Can you use that if your not using the MFC's document/view architecture?
>>My
>>base application uses CDialog.
>>I sent you an email too.
>>
>>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>>news:2njc165r0dlmc9pd165dloteho9nqrs0s3(a)4ax.com...
>>> What I do is use a tab control then use my modified CTabView class to
>>> interface to it. You
>>> can find the source for this on several of my projects on my MVP Tips
>>> site, most notably
>>> my Locale Explorer. Or send me an email and I'll send it to you. I've
>>> found this much
>>> easier than fighting to make a CPropertySheet do what I want.
>>> joe
>>>
>>> On Sun, 13 Jun 2010 20:37:56 -0500, "JCO" <someone(a)somewhere.com> wrote:
>>>
>>>>I have an application (MFC dialog type) that needs to be modified. The
>>>>current app provides the customer a type of "Test" to be performed. As
>>>>part
>>>>of an Add-On, I want to add a 3-tab control (CPropertySheet &
>>>>CPropertyPage)
>>>>where the existing "Test 1" is done on tab 1. Then I will add a "Test
>>>>2"
>>>>&
>>>>"Test 3" on Tab 2 and Tab 3. The user can choose which "Test" to do
>>>>based
>>>>on selecting the proper Tab.
>>>>
>>>>I created the CMyPropertySheet along with the 3-Tabs (CTab1, CTab2,
>>>>CTab3).
>>>>
>>>>The problem is this. Right now the 3-tab dialog comes up independent by
>>>>itself. After I close it, the application comes up. This is not what I
>>>>want. I want the 3-tabs to be part of the main application. What did I
>>>>do
>>>>wrong. I initialize the 3-tab dialog in ::InitDialog() of the main
>>>>application. Is that wrong?
>>>>
>>>>Thanks
>>>>
>>>>
>>> Joseph M. Newcomer [MVP]
>>> email: newcomer(a)flounder.com
>>> Web: http://www.flounder.com
>>> MVP Tips: http://www.flounder.com/mvp_tips.htm
> Joseph M. Newcomer [MVP]
> email: newcomer(a)flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm

From: Joseph M. Newcomer on
I haven't received it yet, or it got nuked by my anti-spam system.
joe

On Mon, 14 Jun 2010 13:19:34 -0500, "JCO" <someone(a)somewhere.com> wrote:

>I need to run but will get back to this later tonight or tomorrow. I sent
>you my email and will wait for you to send me the application so I can
>review. Thanks
>
>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>news:f5sc16t5u1fadjflb84vhkmg0sjc73i15s(a)4ax.com...
>> I modified the CTabView code to run within a dialog-based app.
>> joe
>>
>> On Mon, 14 Jun 2010 12:52:04 -0500, "JCO" <someone(a)somewhere.com> wrote:
>>
>>>
>>>Can you use that if your not using the MFC's document/view architecture?
>>>My
>>>base application uses CDialog.
>>>I sent you an email too.
>>>
>>>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>>>news:2njc165r0dlmc9pd165dloteho9nqrs0s3(a)4ax.com...
>>>> What I do is use a tab control then use my modified CTabView class to
>>>> interface to it. You
>>>> can find the source for this on several of my projects on my MVP Tips
>>>> site, most notably
>>>> my Locale Explorer. Or send me an email and I'll send it to you. I've
>>>> found this much
>>>> easier than fighting to make a CPropertySheet do what I want.
>>>> joe
>>>>
>>>> On Sun, 13 Jun 2010 20:37:56 -0500, "JCO" <someone(a)somewhere.com> wrote:
>>>>
>>>>>I have an application (MFC dialog type) that needs to be modified. The
>>>>>current app provides the customer a type of "Test" to be performed. As
>>>>>part
>>>>>of an Add-On, I want to add a 3-tab control (CPropertySheet &
>>>>>CPropertyPage)
>>>>>where the existing "Test 1" is done on tab 1. Then I will add a "Test
>>>>>2"
>>>>>&
>>>>>"Test 3" on Tab 2 and Tab 3. The user can choose which "Test" to do
>>>>>based
>>>>>on selecting the proper Tab.
>>>>>
>>>>>I created the CMyPropertySheet along with the 3-Tabs (CTab1, CTab2,
>>>>>CTab3).
>>>>>
>>>>>The problem is this. Right now the 3-tab dialog comes up independent by
>>>>>itself. After I close it, the application comes up. This is not what I
>>>>>want. I want the 3-tabs to be part of the main application. What did I
>>>>>do
>>>>>wrong. I initialize the 3-tab dialog in ::InitDialog() of the main
>>>>>application. Is that wrong?
>>>>>
>>>>>Thanks
>>>>>
>>>>>
>>>> Joseph M. Newcomer [MVP]
>>>> email: newcomer(a)flounder.com
>>>> Web: http://www.flounder.com
>>>> MVP Tips: http://www.flounder.com/mvp_tips.htm
>> Joseph M. Newcomer [MVP]
>> email: newcomer(a)flounder.com
>> Web: http://www.flounder.com
>> MVP Tips: http://www.flounder.com/mvp_tips.htm
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: JCO on
Just re-sent it.

"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
news:bh4d16dfhvvgkrjo19b2jods0llat4g76f(a)4ax.com...
> I haven't received it yet, or it got nuked by my anti-spam system.
> joe
>
> On Mon, 14 Jun 2010 13:19:34 -0500, "JCO" <someone(a)somewhere.com> wrote:
>
>>I need to run but will get back to this later tonight or tomorrow. I sent
>>you my email and will wait for you to send me the application so I can
>>review. Thanks
>>
>>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>>news:f5sc16t5u1fadjflb84vhkmg0sjc73i15s(a)4ax.com...
>>> I modified the CTabView code to run within a dialog-based app.
>>> joe
>>>
>>> On Mon, 14 Jun 2010 12:52:04 -0500, "JCO" <someone(a)somewhere.com> wrote:
>>>
>>>>
>>>>Can you use that if your not using the MFC's document/view architecture?
>>>>My
>>>>base application uses CDialog.
>>>>I sent you an email too.
>>>>
>>>>"Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message
>>>>news:2njc165r0dlmc9pd165dloteho9nqrs0s3(a)4ax.com...
>>>>> What I do is use a tab control then use my modified CTabView class to
>>>>> interface to it. You
>>>>> can find the source for this on several of my projects on my MVP Tips
>>>>> site, most notably
>>>>> my Locale Explorer. Or send me an email and I'll send it to you.
>>>>> I've
>>>>> found this much
>>>>> easier than fighting to make a CPropertySheet do what I want.
>>>>> joe
>>>>>
>>>>> On Sun, 13 Jun 2010 20:37:56 -0500, "JCO" <someone(a)somewhere.com>
>>>>> wrote:
>>>>>
>>>>>>I have an application (MFC dialog type) that needs to be modified.
>>>>>>The
>>>>>>current app provides the customer a type of "Test" to be performed.
>>>>>>As
>>>>>>part
>>>>>>of an Add-On, I want to add a 3-tab control (CPropertySheet &
>>>>>>CPropertyPage)
>>>>>>where the existing "Test 1" is done on tab 1. Then I will add a "Test
>>>>>>2"
>>>>>>&
>>>>>>"Test 3" on Tab 2 and Tab 3. The user can choose which "Test" to do
>>>>>>based
>>>>>>on selecting the proper Tab.
>>>>>>
>>>>>>I created the CMyPropertySheet along with the 3-Tabs (CTab1, CTab2,
>>>>>>CTab3).
>>>>>>
>>>>>>The problem is this. Right now the 3-tab dialog comes up independent
>>>>>>by
>>>>>>itself. After I close it, the application comes up. This is not what
>>>>>>I
>>>>>>want. I want the 3-tabs to be part of the main application. What did
>>>>>>I
>>>>>>do
>>>>>>wrong. I initialize the 3-tab dialog in ::InitDialog() of the main
>>>>>>application. Is that wrong?
>>>>>>
>>>>>>Thanks
>>>>>>
>>>>>>
>>>>> Joseph M. Newcomer [MVP]
>>>>> email: newcomer(a)flounder.com
>>>>> Web: http://www.flounder.com
>>>>> MVP Tips: http://www.flounder.com/mvp_tips.htm
>>> Joseph M. Newcomer [MVP]
>>> email: newcomer(a)flounder.com
>>> Web: http://www.flounder.com
>>> MVP Tips: http://www.flounder.com/mvp_tips.htm
> Joseph M. Newcomer [MVP]
> email: newcomer(a)flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm

From: Scott McPhillips [MVP] on
"JCO" <someone(a)somewhere.com> wrote in message
news:OfOgwX%23CLHA.4636(a)TK2MSFTNGP02.phx.gbl...
> No my intent is not to replace the current Dialog. I was under the
> impression that you must use the CPropertySheet with CPropertyPage to do a
> tab. Sounds like, if I understand you correctly, I don't need the
> PropertySheet.
> Getting rid of that might bring up other issues as far as hiding certain
> buttons???
>
> I want my existing dialog. On part of that dialog (50% coverage) I want a
> 3-tab control. (no Wizard and no buttons on the tabs).


For a tab control that covers only part of a dialog forget about
CPropertySheet and CPropertyPage. They don't do that.

Use CTabCtrl and put a tab control on your dialog template. The usual
approach is to then create a modeless dialog for each tab page, with the
dialogs' titlebar style turned off. You create all the dialogs (and you have
to position them on the tab control initially) and you make one at a time
visible as the tabs are clicked. Maybe Joe's class helps with this.

--
Scott McPhillips [VC++ MVP]