MFC CDialog Inheritance
-
In MFC CDialog is inherited publically from CWnd and in CWnd there is a Create function that takes 7 parameters ( the last one of which has a default value ). Now surely you should be able to use this function within your derived CDialog class, but Visual C++ will not compile the code saying "error C2661: 'Create' : no overloaded function takes 7 parameters" This is not important, I'm just curious.
-
In MFC CDialog is inherited publically from CWnd and in CWnd there is a Create function that takes 7 parameters ( the last one of which has a default value ). Now surely you should be able to use this function within your derived CDialog class, but Visual C++ will not compile the code saying "error C2661: 'Create' : no overloaded function takes 7 parameters" This is not important, I'm just curious.
If the
CWnd::Create
function is overridden inCDialog
, you can inCDialog
and derived classes use only the overridden versions. To force the non-overriddenCWnd::Create
call, useCDerivedDialog dlg; dlg.CWnd::Create(...);
Robert-Antonio "A flower walked around a meadow. She saw a beatiful human and plucked off his head."