Building the Right Environment to Support AI, Machine Learning and Deep Learning
The Class View (and the Class Wizard and the Wizard Bar) does not support hiding of functions. It, however, preprocess the file and we use use this knowledge to fool it into not recognizing a function. To achieve this we declare a couple of macros to camouflage the parentheses. If there is more than one class that you want to hide functions in, you may want to declare the macros in stdafx.h, otherwise declaring it in the header file for the class is OK.
Make sure you document this in each header file you modify, otherwise your code is going to be a big headache for the next person seeing it.
#define HIDE____ ( #define ____HIDE );
Here's how you would hide a function
afx_msg void OnUpdateFunction(CCmdUI* pCmdUI);To
afx_msg void OnUpdateFunction HIDE___ CCmdUI* pCmdUI ___HIDE
Note that there is no ending semi-colon. That's taken care of by the macro.
To hide a variable, define a macro to substitute for the semi-colon. Use this macro to end the statement