Exemplo n.º 1
0
/**
 * @param uNotifyCode - notification code if the message is from a control. If the message is from an accelerator, this value is 1. If the message is from a menu, this value is zero.
 * @param nID - specifies the identifier of the menu item, control, or accelerator.
 * @param hWndCtl - handle to the control sending the message if the message is from a control. Otherwise, this parameter is NULL.
 */
void CExpressModeDlg::OnLogFileBrowse(UINT /*uNotifyCode*/, int /*nID*/, HWND /*hWndCtl*/)
{
	MsgTip::HideMessage();
	CString strLogFile;
	m_txtLogFile.GetWindowText(strLogFile);
	CCustomFileDialog dlgSelectFile(TRUE,
		_T("xml"),
		strLogFile,
		OFN_HIDEREADONLY | OFN_FILEMUSTEXIST,
		_T("XML Log Files\0*.xml\0All Files\0*.*\0"),
		m_hWnd);
	if (dlgSelectFile.DoModal(m_hWnd) == IDOK)
		m_txtLogFile.SetWindowText(dlgSelectFile.m_szFileName);
}
Exemplo n.º 2
0
/**
 * @param uNotifyCode - notification code if the message is from a control. If the message is from an accelerator, this value is 1. If the message is from a menu, this value is zero.
 * @param nID - specifies the identifier of the menu item, control, or accelerator.
 * @param hWndCtl - handle to the control sending the message if the message is from a control. Otherwise, this parameter is NULL.
 */
void CManualModeDlg::OnMapPdbFileBrowse(UINT /*uNotifyCode*/, int /*nID*/, HWND /*hWndCtl*/)
{
	MsgTip::HideMessage();
	CString strMapPdbFile;
	m_txtMapPdbFile.GetWindowText(strMapPdbFile);
	CCustomFileDialog dlgSelectFile(TRUE,
		NULL,
		strMapPdbFile,
		OFN_HIDEREADONLY | OFN_FILEMUSTEXIST,
		_T("All Supported Files\0*.map;*.pdb;*.exe;*.dll\0")
		_T("Map Files\0*.map\0")
		_T("Pdb Files\0*.pdb\0")
		_T("Executable Files\0*.exe;*.dll\0")
		_T("All Files\0*.*\0"),
		m_hWnd);
	if (dlgSelectFile.DoModal(m_hWnd) == IDOK)
		m_txtMapPdbFile.SetWindowText(dlgSelectFile.m_szFileName);
}