Click here to Skip to main content
15,877,573 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to reuse a single CView class with multiple tabs in MFC Pin
_Flaviu14-Mar-18 21:58
_Flaviu14-Mar-18 21:58 
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 
I have made an test app, SDI, MFC, with view based on CFormView. On this CView, I have put an CTreeCtrl object. And I have mapped NM_RDBLCLK, in this way:
C++
// header
// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnNMRDblclkTree1(NMHDR *pNMHDR, LRESULT *pResult);
	DECLARE_MESSAGE_MAP()

and
C++
BEGIN_MESSAGE_MAP(CTestTreeView, CFormView)
	ON_NOTIFY(NM_RDBLCLK, IDC_TREE1, &CTestTreeView::OnNMRDblclkTree1)
END_MESSAGE_MAP()

....
....
void CTestTreeView::OnNMRDblclkTree1(NMHDR *pNMHDR, LRESULT *pResult)
{
	// TODO: Add your control notification handler code here

	MessageBox(_T("Aha"));

	*pResult = 0;
}

but I hit right-double-click, is happen nothing ... why ? I haven't done enough to have this feature on my CTreeCtrl object ?
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 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
Victor Nijegorodov16-Mar-18 3:18
Victor Nijegorodov16-Mar-18 3:18 
GeneralRe: NM_RDBLCLK not working for CTreeCtrl Pin
_Flaviu19-Mar-18 0:26
_Flaviu19-Mar-18 0:26 
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 

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.