comparison anagram/vaclgui/agfiledialog.cpp @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 /*
2 * AnaGram, A System for Syntax Directed Programming
3 * Copyright 1997-2002 Parsifal Software. All Rights Reserved.
4 * See the file COPYING for license and usage terms.
5 *
6 * agfiledialog.cpp
7 */
8
9 #include "agfiledialog.hpp"
10
11
12 AgFileDialog::AgFileDialog(IWindow *owner_)
13 : owner(owner_)
14 {
15 memset(&ofn, 0, sizeof(ofn));
16 ofn.lStructSize = sizeof(ofn);
17 ofn.hwndOwner = owner->handle();
18 ofn.lpstrFilter = "All Files\0*.*\0";
19 nameBuffer[0] = 0;
20 ofn.lpstrFile = nameBuffer;
21 ofn.nMaxFile = 256;
22 ofn.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST;
23 }
24