Category : C++ Source Code
Archive   : PRIVDLG.ZIP
Filename : PRIVDLG.H
// File name: main.h
//
// Description:
// Declares the interface for the sample application
//
// History: Date Author Comment
// 5/11/92 Mark Bader Created
//
// Written by Microsoft Product Support Services, Windows Developer Support
// Copyright (c) 1992 Microsoft Corporation. All rights reserved.
//*************************************************************
#ifndef __PRIVDLG_H__
#define __PRIVDLG_H__
//*************************************************************
// Class:
// CMainDlgWindow
//
// Description:
// The main window class. Note that it is derived from CDialog
// rather than CFrameWnd. This class follows the example in
// the "Class Libraries User's Guide", page 334.
//
// Derived from:
// CDialog
//
// Data Members:
// BOOL bRegistered : TRUE if private dialog class has been registered
//
// Member Functions:
// static RegisterMyClass() : registers private dialog class
// CMainDlgWindow() : Constructor
// OnHelp() : Message handler for WM_COMMAND,IDC_HELP
// OnOK() : Message handler for IDOK
// OnClose() : For WM_CLOSE
//
// Comments
//
// History: Date Author Comment
// 5/11/92 Mark Bader Created based on p. 334, "Class
// Libraries User's Guide"
//
//*************************************************************
class CMainDlgWindow : public CDialog
{
private:
static BOOL bRegistered;
static BOOL RegisterMyClass();
public:
CMainDlgWindow();
void OnOK();
void OnHelp();
void OnClose()
{
DestroyWindow();
}
virtual void PostNcDestroy()
{
PostQuitMessage(0);
delete this;
}
DECLARE_MESSAGE_MAP()
};
//*************************************************************
// Class:
// CTheApp
//
// Description:
// The Application class
//
// Derived from:
// CWinApp
//
// Data Members:
// None
//
// Member Functions:
// InitInstance() : Creates the main window and calls necessary
// : show the window
// Comments
//
// History: Date Author Comment
// 5/11/92 Mark Bader Created
//
//*************************************************************
class CTheApp : public CWinApp
{
public:
BOOL InitInstance();
};
#endif // __PRIVDLG_H__
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/