Category : Files from Magazines
Archive   : DDJ9405F.ZIP
Filename : FILEOPEN.H

 
Output of file : FILEOPEN.H contained in archive : DDJ9405F.ZIP
// --------- fileopen.h

#ifndef FILEOPEN_H
#define FILEOPEN_H

#include "dialog.h"
#include "directry.h"
#include "editbox.h"
#include "label.h"
#include "pbutton.h"

// ------------ File Open dialog box
class FileOpen : public Dialog {
// -----File Open Dialog Box Controls:
protected:
// ----- file name editbox
Label filelabel;
EditBox filename;
// ----- drive:path display
PathNameLabel dirlabel;
// ----- files list box
Label fileslabel;
FileNameListBox files;
// ----- directories list box
Label dirslabel;
DirectoryListBox dirs;
// ----- drives list box
Label disklabel;
DriveListBox disks;
// ----- command buttons
OKButton ok;
CancelButton cancel;
HelpButton help;
// ------ file open data members
String filespec;
// ------ private member functions
void SelectFileName();
void ShowLists();
void PrepFilename(String& fname); // (called from ctor: cannot be virtual)
// --- functions inherited from DFWindow
virtual void ControlSelected(DFWindow *Wnd);
virtual void ControlChosen(DFWindow *Wnd);
virtual void EnterFocus(DFWindow *Wnd);
virtual void OKFunction();
Bool GetFileName(String& fname);
public:
FileOpen(const String& spec = "*.*", const String& ttl = "File Open");
const String& FileName() { return filespec; }
};

class SaveAs : public FileOpen {
virtual void OKFunction();
public:
SaveAs(const String& spec = "",
const String& fname = "",
const String& ttl = "Save As");
};

#endif



  3 Responses to “Category : Files from Magazines
Archive   : DDJ9405F.ZIP
Filename : FILEOPEN.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/