Files (original) (raw)

void Program::Window_Open(Win::Event& e)
{
}

void Program::btOpen_Click(Win::Event& e)
{
Win::FileDlg dlg;
dlg.SetFilter(L"Text Documents (*.txt)\0*.txt\0All Files (*.*)\0*.*\0\0", 0, L"txt");
if (dlg.BeginDialog(hWnd, L"Open a text file", false) == true)
{
this->Text = dlg.GetFileNameFullPath();
}
}

void Program::btSave_Click(Win::Event& e)
{
Win::FileDlg dlg;
dlg.SetFilter(L"Excel Files (*.xlsx)\0*.xslx\0All Files (*.*)\0*.*\0\0", 0, L"xlsx");
if (dlg.BeginDialog(hWnd, L"Open a Microsoft Excel file", true) == true)
{
this->Text = dlg.GetFileNameFullPath();
}
}