home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Large Pack of OldSkool DOS MOD Trackers
/
beaversweeper_v101.zip
/
src
/
MyDialogBar.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2003-01-06
|
1KB
|
67 lines
// MyDialogBar.cpp : implementation file
//
#include "stdafx.h"
#include "tracker.h"
#include "MyDialogBar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyDialogBar dialog
IMPLEMENT_DYNCREATE(CMyDialogBar, CDialogBar)
CMyDialogBar::CMyDialogBar()
{
//{{AFX_DATA_INIT(CMyDialogBar)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CMyDialogBar::~CMyDialogBar()
{
}
void CMyDialogBar::SetCaption(CString _caption)
{
caption = _caption;
}
void CMyDialogBar::DoDataExchange(CDataExchange* pDX)
{
CDialogBar::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyDialogBar)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CMyDialogBar, CDialogBar)
//{{AFX_MSG_MAP(CMyDialogBar)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyDialogBar message handlers
LRESULT CMyDialogBar::WindowProc( UINT message, WPARAM wParam, LPARAM lParam )
{
LRESULT lResult = CDialogBar::WindowProc(message,wParam,lParam);
if(::IsWindow(m_hWnd))
{
CWnd *pWnd = GetParent();
if (pWnd != NULL)
{
pWnd->SetWindowText((LPCSTR)caption);
}
}
return lResult;
}