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
Code:
WM_INITDIALOG
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!