| 1 |
#if !defined(AFX_GENERICCHILDDIALOG_H__5C5B8861_EC8F_11D7_A638_002018641C4D__INCLUDED_) |
|---|
| 2 |
#define AFX_GENERICCHILDDIALOG_H__5C5B8861_EC8F_11D7_A638_002018641C4D__INCLUDED_ |
|---|
| 3 |
|
|---|
| 4 |
#if _MSC_VER > 1000 |
|---|
| 5 |
#pragma once |
|---|
| 6 |
#endif // _MSC_VER > 1000 |
|---|
| 7 |
// GenericChildDialog.h : header file |
|---|
| 8 |
// |
|---|
| 9 |
|
|---|
| 10 |
///////////////////////////////////////////////////////////////////////////// |
|---|
| 11 |
// CRHGenericChildDialog dialog |
|---|
| 12 |
|
|---|
| 13 |
class CRHGenericChildDialog : public CDialog |
|---|
| 14 |
{ |
|---|
| 15 |
// Construction |
|---|
| 16 |
public: |
|---|
| 17 |
//CRHGenericChildDialog(CWnd* pParent = NULL); // standard constructor |
|---|
| 18 |
//CRHGenericChildDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL ); |
|---|
| 19 |
CRHGenericChildDialog(); |
|---|
| 20 |
|
|---|
| 21 |
virtual int CRHGetDialogID() = 0; // must be provided by derived classes |
|---|
| 22 |
|
|---|
| 23 |
void CRHCreateGenericChildDialog(CWnd *pParent, |
|---|
| 24 |
int PlaceMarkerCtrlID, |
|---|
| 25 |
int Id, |
|---|
| 26 |
CRect *ABorderRect = NULL); |
|---|
| 27 |
void CRHCreateGenericChildDialog(CWnd *pParent, |
|---|
| 28 |
CRect *pPlaceMarkerRect, |
|---|
| 29 |
int Id, |
|---|
| 30 |
CRect *ABorderRect = NULL); |
|---|
| 31 |
|
|---|
| 32 |
static CRect CRHRectForGroupBox; |
|---|
| 33 |
|
|---|
| 34 |
// Dialog Data |
|---|
| 35 |
//{{AFX_DATA(CRHGenericChildDialog) |
|---|
| 36 |
//enum { IDD = _UNKNOWN_RESOURCE_ID_ }; <<< not needed, and produces a compiler error |
|---|
| 37 |
//}}AFX_DATA |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
// Overrides |
|---|
| 41 |
// ClassWizard generated virtual function overrides |
|---|
| 42 |
//{{AFX_VIRTUAL(CRHGenericChildDialog) |
|---|
| 43 |
protected: |
|---|
| 44 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
|---|
| 45 |
//}}AFX_VIRTUAL |
|---|
| 46 |
|
|---|
| 47 |
// Implementation |
|---|
| 48 |
protected: |
|---|
| 49 |
|
|---|
| 50 |
// Generated message map functions |
|---|
| 51 |
//{{AFX_MSG(CRHGenericChildDialog) |
|---|
| 52 |
// NOTE: the ClassWizard will add member functions here |
|---|
| 53 |
//}}AFX_MSG |
|---|
| 54 |
DECLARE_MESSAGE_MAP() |
|---|
| 55 |
protected: |
|---|
| 56 |
void CRHPostMessageToParent(UINT message, LPARAM lParam); |
|---|
| 57 |
public: |
|---|
| 58 |
WPARAM CRHId; // used by CRHPostMessageToParent(), sent in any messages to the parent to indicate where it's come from |
|---|
| 59 |
CWnd* CRHpParent; |
|---|
| 60 |
}; |
|---|
| 61 |
|
|---|
| 62 |
//{{AFX_INSERT_LOCATION}} |
|---|
| 63 |
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
|---|
| 64 |
|
|---|
| 65 |
#endif // !defined(AFX_GENERICCHILDDIALOG_H__5C5B8861_EC8F_11D7_A638_002018641C4D__INCLUDED_) |
|---|