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.
51 lines
1.3 KiB
51 lines
1.3 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 19/04/2000
|
|
// Last modification: 08/10/2003
|
|
// Project Intruder Position Indicator
|
|
// SUBSYSTEM: Dialog
|
|
// FILE: Dialog.h
|
|
// AUTHOR: Chizhevskiy Sergey
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of class CDialog
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __DIALOG__H__INCLUDED__
|
|
#define __DIALOG__H__INCLUDED__
|
|
|
|
class CDialog
|
|
{
|
|
public:
|
|
CDialog(LPCTSTR lpTemplateName);
|
|
virtual ~CDialog();
|
|
|
|
public:
|
|
BOOL Create( HWND hParent = NULL, BOOL bThread = FALSE );
|
|
void Destroy();
|
|
|
|
BOOL DoModal( HWND hParent = NULL, BOOL bThread = FALSE );
|
|
operator HWND() { return m_hWnd; }
|
|
|
|
protected:
|
|
virtual BOOL DialogProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) = 0;
|
|
virtual DWORD ThreadProc();
|
|
|
|
private:
|
|
friend BOOL CALLBACK DialogProcDialog( HWND, UINT, WPARAM, LPARAM );
|
|
friend DWORD CALLBACK ThreadProcDialog( LPVOID lpvParam )
|
|
{ return ((CDialog*)lpvParam)->ThreadProc(); }
|
|
|
|
protected:
|
|
HINSTANCE m_hInstance;
|
|
LPCTSTR m_pTemplateName;
|
|
HANDLE m_hThread;
|
|
DWORD m_dwThreadId;
|
|
HWND m_hWnd;
|
|
HWND m_hParent;
|
|
BOOL m_bModal;
|
|
|
|
};
|
|
|
|
#endif
|