17 Jun 09:37
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:wtl-digest@...
mailto:wtl-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
wtl-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
RSS Feed