I have another question...
In the class CFileEdit, I have a Message handler for WM_LBUTTONDBLCLK(), but whenever I double click the control, nothing is happening...
This is what the function looks like:
Code:
void CFileEdit::OnLButtonDblClk(UINT nFlags, CPoint point)
{
//AfxMessageBox("Hi!");
CFileDialog g_cfBrowseForFile(TRUE, m_szFileExt, NULL, OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST, m_szFileFilter);
if (g_cfBrowseForFile.DoModal() == IDOK)
{
CString szFileName;
szFileName = g_cfBrowseForFile.GetFolderPath();
CEdit::SetWindowText(szFileName);
}
CEdit::OnLButtonDblClk(nFlags, point);
}