Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1994.
//
// 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__
|