Files
Cyd 2b8ca921cb Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS
Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
2026-06-24 21:28:16 -05:00

64 lines
1.8 KiB
C++

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright 1992 - 1997 Microsoft Corporation.
//
// File: cdialog.h
//
// Contents: definition for common dialog functionality
//
// Classes: CHlprDialog (pure virtual class)
//
// Functions: DialogProc
//
// History: 4-12-94 stevebl Created
//
//----------------------------------------------------------------------------
#ifndef __CDIALOG_H__
#define __CDIALOG_H__
#ifdef __cplusplus
extern "C" {
#endif
BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
#ifdef __cplusplus
}
//+---------------------------------------------------------------------------
//
// Class: CHlprDialog
//
// Purpose: virtual base class for wrapping Windows' dialog functionality
//
// Interface: ShowDialog -- analagous to the Windows DialogBox function
// DialogProc -- pure virtual DialogProc for the dialog box
// ~CHlprDialog -- destructor
//
// History: 4-12-94 stevebl Created
//
// Notes: This class allows a dialog box to be cleanly wrapped in
// a c++ class. Specifically, it provides a way for a c++ class
// to use one of its methods as a DialogProc, giving it a "this"
// pointer and allowing it to have direct access to all of its
// private members.
//
//----------------------------------------------------------------------------
class CHlprDialog
{
public:
virtual int ShowDialog(HINSTANCE hinst, LPCTSTR lpszTemplate, HWND hwndOwner);
virtual BOOL DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;
virtual ~CHlprDialog(){};
protected:
HINSTANCE _hInstance;
};
#endif //__cplusplus
#endif //__CDIALOG_H__