Link to home
Start Free TrialLog in
Avatar of Wanting2LearnMan
Wanting2LearnManFlag for United Kingdom of Great Britain and Northern Ireland

asked on

'CDialog::SHInitDialog' : function does not take 1 arguments

I get error C2660: 'CDialog::SHInitDialog' : function does not take 1 arguments      
with the below code.
I am converting an eVC++ project to VS2005.  How can I solve this?


BOOL CMyClass::OnInitDialog()
{
      CDialog::OnInitDialog();
      
      SHINITDLGINFO shidi;

      shidi.dwMask = SHIDIM_FLAGS;
      shidi.dwFlags =SHIDIF_FULLSCREENNOMENUBAR;
      shidi.hDlg = m_hWnd;
      SHInitDialog(&shidi);

}
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
look into dlgcore.cpp in MFC sources, there is the method SHInitDialog() there, but it doesn't do what you'd expect from its name :)

actual SHInitDialog() is called from OnInitiDialog() later on, so you might want to use :: SHInitDialog() as previous post suggests