Old fashion design for PC-104
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.
 
 
 
 
 

61 lines
1.6 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: PanelWnd.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of PanelWnd.h
//----------------------------------------------------------------------------
#ifndef __PANEL__WND__H__INCLUDED__
#define __PANEL__WND__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
class CPanelWnd : public CWnd
{
public:
CPanelWnd();
virtual ~CPanelWnd();
public:
virtual BOOL Create( CWnd *pParentWnd, int x, int y, int nWidth, int nHeight );
virtual BOOL Create( CWnd *pParentWnd, CRect *pRect );
virtual BOOL PlaceChildCenter( CWnd *pChildWnd );
virtual BOOL PlaceChildFit( CWnd *pChildWnd, double dAspect );
virtual BOOL PlaceChild( CWnd *pChildWnd );
public:
//{{AFX_VIRTUAL(CPanelWnd)
public:
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CPanelWnd)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
void FitChildWindow();
protected:
void CenterChildWindow();
void ScaleChildWindow();
CWnd *m_pChildWnd;
double m_dAspect;
enum { PN_NONE, PM_FIT, PM_CENTER, PM_SCALE };
int m_nMode;
};
//{{AFX_INSERT_LOCATION}}
#endif