CFileDialog and GetOpenFileName() in WinCE
OK, from MSDN,
OPENFILENAME structure:
lCustData Not supported.
lpfnHook Not supported.
lpTemplateName Not supported.
So CFileDialog won't get any notification, which means anything like
Code:
case CDN_INITDONE:
OnInitDone();
or
won't be received in CFileDialog...
PS:
CFileDialog is actually calling GetOpenFileName() to do the same job.
Great! Then here comes the questions.
In WindowsCE 5.0, the file open/save as dialog created by OPENFILENAME/GetOpenFileName () is fine. It just fits the screen resolution.
BUT IN WINCE 4.2 environment, the dialog is JUST TOO BIG to see the OK/CANCEL buttons. But since there is no HOOK solution (lpfnHook is not supported), so we can only sit and see the ALWAYS TOO BIG dialog on the screen.... =.=
Any solution or replacement from any gurus?
I check Codeguru and Codeproject, but all the solutions I can get are leveraging the way GetOpenFileName() API, which means it won't help in WinCE 4.2 - The default dialog is just too big! And you have no way to hook it!
Re: CFileDialog and GetOpenFileName() in WinCE
A similiar issue here (at 2003 yr?)
http://groups.google.com/group/micro...05560f9e8a3c85
And at VS2005,
Microsoft uses ::AfxCtxGetOpenFileName() instead of ::GetOpenFileName() to work around it.
Another problem cause this issue http://www.codeguru.com/forum/showth...etOpenFileName (well, one yr ago, seems no-one help at that time.)