Message_Map MFC vc++
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
In the below code snippet, why do we use '&' ? Is it because we're passing the reference of the member function?
BEGIN_MESSAGE_MAP(CMFCListViewDoc, CDocument)
ON_COMMAND(ID_MYCOMMAND, &CMFCListViewDoc::OnMycommand) // why do we use '&'
END_MESSAGE_MAP()Excuse me for this question. It's like I know and I don't know too :).
-
In the below code snippet, why do we use '&' ? Is it because we're passing the reference of the member function?
BEGIN_MESSAGE_MAP(CMFCListViewDoc, CDocument)
ON_COMMAND(ID_MYCOMMAND, &CMFCListViewDoc::OnMycommand) // why do we use '&'
END_MESSAGE_MAP()Excuse me for this question. It's like I know and I don't know too :).