Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSingle View with Multiple Tabs in MFC Pin
Sampath57912-Mar-18 22:51
Sampath57912-Mar-18 22:51 
Hi
I have a requirement where i need to display few tabs and render something in only one view instead of creating multiple views for each tab. The reason is i am loading an active x control on that view. So, i written class which inherits from CTabView, but When i call AddView(), each AddView() is creating a new object and i need to load active x control on each view which is violating my requirement and unnecessary memory is getting created.

Is there is any way to create only one view for all the tabs, such that i can create only one view and load active x control on that view and switch the tabs to render different things on one view.?

Currently i am trying with tabbedpane assuming my above requirement will get solved.

Please let me know incase if there is any other option?

modified 13-Mar-18 23:59pm.

QuestionRe: TabbedPane vs TabView Pin
Richard MacCutchan12-Mar-18 22:59
mveRichard MacCutchan12-Mar-18 22:59 
AnswerRe: TabbedPane vs TabView Pin
Sampath57912-Mar-18 23:04
Sampath57912-Mar-18 23:04 
GeneralRe: TabbedPane vs TabView Pin
Richard MacCutchan12-Mar-18 23:15
mveRichard MacCutchan12-Mar-18 23:15 
GeneralRe: TabbedPane vs TabView Pin
Sampath57912-Mar-18 23:17
Sampath57912-Mar-18 23:17 
GeneralRe: TabbedPane vs TabView Pin
Richard MacCutchan12-Mar-18 23:32
mveRichard MacCutchan12-Mar-18 23:32 
GeneralRe: TabbedPane vs TabView Pin
Sampath57912-Mar-18 23:44
Sampath57912-Mar-18 23:44 
GeneralRe: TabbedPane vs TabView Pin
Richard MacCutchan12-Mar-18 23:53
mveRichard MacCutchan12-Mar-18 23:53 
GeneralRe: TabbedPane vs TabView Pin
Sampath57912-Mar-18 23:59
Sampath57912-Mar-18 23:59 
GeneralRe: TabbedPane vs TabView Pin
Victor Nijegorodov13-Mar-18 1:25
Victor Nijegorodov13-Mar-18 1:25 
GeneralRe: TabbedPane vs TabView Pin
Sampath57913-Mar-18 6:14
Sampath57913-Mar-18 6:14 
GeneralRe: TabbedPane vs TabView Pin
Victor Nijegorodov13-Mar-18 9:29
Victor Nijegorodov13-Mar-18 9:29 
GeneralRe: TabbedPane vs TabView Pin
Sampath57913-Mar-18 17:59
Sampath57913-Mar-18 17:59 
GeneralRe: TabbedPane vs TabView Pin
Sampath57913-Mar-18 19:05
Sampath57913-Mar-18 19:05 
GeneralRe: TabbedPane vs TabView Pin
Sampath57913-Mar-18 23:39
Sampath57913-Mar-18 23:39 
GeneralRe: TabbedPane vs TabView Pin
Sampath57913-Mar-18 23:44
Sampath57913-Mar-18 23:44 
GeneralRe: TabbedPane vs TabView Pin
Sampath57914-Mar-18 3:51
Sampath57914-Mar-18 3:51 
GeneralRe: TabbedPane vs TabView Pin
Victor Nijegorodov14-Mar-18 10:26
Victor Nijegorodov14-Mar-18 10:26 
QuestionHow to change color of Tab View in MFC Pin
Sampath57910-Mar-18 2:55
Sampath57910-Mar-18 2:55 
AnswerRe: How to change color of Tab View in MFC Pin
Victor Nijegorodov10-Mar-18 7:35
Victor Nijegorodov10-Mar-18 7:35 
GeneralRe: How to change color of Tab View in MFC Pin
Sampath57910-Mar-18 18:17
Sampath57910-Mar-18 18:17 
GeneralRe: How to change color of Tab View in MFC Pin
Victor Nijegorodov10-Mar-18 21:52
Victor Nijegorodov10-Mar-18 21:52 
GeneralRe: How to change color of Tab View in MFC Pin
Sampath57910-Mar-18 23:11
Sampath57910-Mar-18 23:11 
GeneralRe: How to change color of Tab View in MFC Pin
Victor Nijegorodov10-Mar-18 23:18
Victor Nijegorodov10-Mar-18 23:18 
QuestionWhy the arrow button on TabControl is not working in my MFC application. Pin
Sampath57910-Mar-18 2:54
Sampath57910-Mar-18 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.