Function Addresses in MFC Message Cards

Why are function addresses displayed on message cards created by the class wizard written with the class name explicitly mentioned?

For example:

ON_BN_CLICKED(IDC_CHECK1, &CMyDlg::OnClickedSomeButton) 

instead:

 ON_BN_CLICKED(IDC_CHECK1, &OnClickedSomeButton) 

or even:

 ON_BN_CLICKED(IDC_CHECK1, OnClickedSomeButton) 

All three options compile correctly.

This is just curiosity.

+7
c ++ mfc
source share

No one has answered this question yet.

See similar questions:

2
MFC message refactoring to include full-featured member function pointers

or similar:

1518
Image Processing: Enhanced Coca-Cola Can Recognition Algorithm
1138
Why do we need virtual functions in C ++?
471
Why is this program mistakenly rejected by three C ++ compilers?
400
Why does GCC generate code 15-20% faster if I optimize size instead of speed?
300
int a [] = {1,2,}; Strange comma allowed. Any specific reason?
233
How to implement factory method template in C ++ correctly
143
The most unpleasant parsing: why A a (()); Job?
81
What is the fundamental difference between MFC and ATL?
2
Multiple Inheritance MFC Message Card: Avoiding C4407 Warning and Runtime Failures
0
print function address using GOOGLE_LOG

All Articles