Re: CFileDialogImpl extends in Windows Mobile Message Problem
"Alain Rist" <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <7A6F74176394481084549A92705699B0@Alain2> |
Hi, The only notification sent by the Mobile Common File Dialogs is CDN_TYPECHANGE so your OnInitDone() member is never called. cheers, AR ----- Original Message ----- From: veryggungs To: [email protected] Sent: Wednesday, June 17, 2009 9:37 AM Subject: [wtl] CFileDialogImpl extends in Windows Mobile Message Problem class CPictureOpenDlg : public CFileDialogImpl<CPictureOpenDlg> { public: CPictureOpenDlg( // Supports only FileOpen LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, OFN_EXFLAG ExFlags = OFN_EXFLAG_THUMBNAILVIEW, OFN_SORTORDER dwSortOrder = OFN_SORTORDER_AUTO, LPCTSTR lpszFilter = NULL, HWND hWndParent = NULL) : CFileDialogImpl<CPictureOpenDlg>(TRUE, lpszDefExt, lpszFileName, dwFlags, lpszFilter, hWndParent) { m_ofn.ExFlags = ExFlags; m_ofn.dwSortOrder = dwSortOrder; } BEGIN_MSG_MAP(CPictureOpenDlg) CHAIN_MSG_MAP(CFileDialogImpl<CPictureOpenDlg>) END_MSG_MAP() void OnInitDone(LPOFNOTIFY lpon) { MessageBox(L"OK"); } } In Windows Mobile Programming, Does not run override function Nerver show error and "OK" MessageBox!! I thought Message not to send my class. so I modified "CFileDialogImpl" BUT NOT MESSAGE HAPPEN!! template <class T> class ATL_NO_VTABLE CFileDialogImpl : public ATL::CDialogImplBase { public: .. .. .. // Message map and handlers BEGIN_MSG_MAP(CFileDialogImpl) MESSAGE_HANDLER(WM_NOTIFY, _OnNotify) .. .. .. LRESULT _OnNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { MessageBox(L"Notify"); return 1; } Also Never show MessageBox.. please give me solution it... ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/