Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can we include two Message Maps in one class? Pin
Jochen Arndt15-Mar-18 4:50
professionalJochen Arndt15-Mar-18 4:50 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 6:57
Sampath57915-Mar-18 6:57 
GeneralRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 7:11
mveRichard MacCutchan15-Mar-18 7:11 
GeneralRe: Can we include two Message Maps in one class? Pin
Sampath57915-Mar-18 7:31
Sampath57915-Mar-18 7:31 
GeneralRe: Can we include two Message Maps in one class? Pin
Richard MacCutchan15-Mar-18 8:03
mveRichard MacCutchan15-Mar-18 8:03 
QuestionHow to reuse a single CView class with multiple tabs in MFC Pin
Sampath57914-Mar-18 6:42
Sampath57914-Mar-18 6:42 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
Richard MacCutchan14-Mar-18 7:06
mveRichard MacCutchan14-Mar-18 7:06 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 21:58
_Flaviu14-Mar-18 21:58 
Yes, it could work, but not like you tried above ... think that m_CView is the same CView instance on every tab, which is impossible ... but you can try to create a new instance on every AddView call, something like that:
C++
AddView(new CYourView(),_T("Tab1"));
AddView(new CYourView(),_T("Tab2"));

this is simplistic approach, that I wrote it just you see the point, but in a real situation, you have to elaborate this: create any instance of CYourView object you need, add every one of them in an array of pointers, and supply this pointers on AddView call as first argument. Do you understand what I say ?
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 22:41
_Flaviu14-Mar-18 22:41 
GeneralRe: How to reuse a single CView class with multiple tabs in MFC Pin
Sampath57914-Mar-18 22:55
Sampath57914-Mar-18 22:55 
GeneralRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 23:08
_Flaviu14-Mar-18 23:08 
GeneralRe: How to reuse a single CView class with multiple tabs in MFC Pin
Sampath57914-Mar-18 23:27
Sampath57914-Mar-18 23:27 
GeneralRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 23:35
_Flaviu14-Mar-18 23:35 
GeneralRe: How to reuse a single CView class with multiple tabs in MFC Pin
Sampath57915-Mar-18 0:05
Sampath57915-Mar-18 0:05 
QuestionNM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu14-Mar-18 4:44
_Flaviu14-Mar-18 4:44 
AnswerRe: NM_RDBLCLK not working for CTreeCtrl Pin
Victor Nijegorodov14-Mar-18 10:41
Victor Nijegorodov14-Mar-18 10:41 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu14-Mar-18 22:06
_Flaviu14-Mar-18 22:06 
SuggestionRe: NM_RDBLCLK not working for CTreeCtrl Pin
Jochen Arndt14-Mar-18 22:44
professionalJochen Arndt14-Mar-18 22:44 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu14-Mar-18 23:16
_Flaviu14-Mar-18 23:16 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
Jochen Arndt14-Mar-18 23:24
professionalJochen Arndt14-Mar-18 23:24 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu14-Mar-18 23:37
_Flaviu14-Mar-18 23:37 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
Jochen Arndt15-Mar-18 0:43
professionalJochen Arndt15-Mar-18 0:43 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu15-Mar-18 1:16
_Flaviu15-Mar-18 1:16 
AnswerRe: NM_RDBLCLK not working for CTreeCtrl Pin
Victor Nijegorodov15-Mar-18 3:04
Victor Nijegorodov15-Mar-18 3:04 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu16-Mar-18 0:57
_Flaviu16-Mar-18 0:57 

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.