[wtl-cvs] wtl/include atldlgs.h,1.39,1.40
Brought to you by:
nenadstefanovic
From: Alain R. <arn...@us...> - 2007-06-14 15:47:18
|
Update of /cvsroot/wtl/wtl/include In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv19946 Modified Files: atldlgs.h Log Message: Fix for bug #1736760 CFileDialog(false) fails on Windows Mobile 5 or 6 Index: atldlgs.h =================================================================== RCS file: /cvsroot/wtl/wtl/include/atldlgs.h,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** atldlgs.h 2 Jun 2007 08:31:09 -0000 1.39 --- atldlgs.h 14 Jun 2007 15:47:15 -0000 1.40 *************** *** 152,156 **** --- 152,161 ---- m_bOpenFileDialog = bOpenFileDialog; + #if defined(__AYGSHELL_H__) && (_WIN32_WCE >= 0x0501) + m_ofn.lStructSize = bOpenFileDialog ? sizeof(m_ofn) : sizeof(OPENFILENAME); + #else m_ofn.lStructSize = sizeof(m_ofn); + #endif + #if (_WIN32_WINNT >= 0x0500) // adjust struct size if running on older version of Windows |