Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
Victor Nijegorodov20-Mar-18 9:23
Victor Nijegorodov20-Mar-18 9:23 
QuestionSingle View with Multiple Tabs in MFC Pin
Sampath57912-Mar-18 22:51
Sampath57912-Mar-18 22:51 
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 
class MyMainClass : public CTabView
{
    int OnCreate(LPCREATESTRUCT lpCreateStruct);
};

int MyMainClass::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CTabView::OnCreate(lpCreateStruct) == -1)
		return -1;

	
         AddView(RUNTIME_CLASS(CDrawingView), _T("Tab1"));
	 AddView(RUNTIME_CLASS(CDrawingView), _T("Tab2"));
}
	

class CDrawingView : public CScrollView
{
/.... rendering logic.
}


So, each time i call AddView() the CDrawingView class is getting instantiated and new view is getting created. Instead only one view should be available and new tabs should get created.
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 

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.