www.pudn.com > LECTEUR-MP3.zip > MainFrm.h
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__51A3D26B_AD0D_44C9_93A0_EFF455BAD771__INCLUDED_)
#define AFX_MAINFRM_H__51A3D26B_AD0D_44C9_93A0_EFF455BAD771__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BaseVarFrame.h"
#include "MusGestView.h"
#include "FileView.h"
/****************************************
- Architecture :
CFrameWnd
^
|
CBaseVarFrame (BaseVarFrame.h)
^
|
CMainFrame (MainFrm.h)
^
|
CBaseVariableFrame (ChildFrm.h)
- La MainFrame initialise la DialogBar
et la statusBar
***************************************/
class CMainFrame : public CBaseVarFrame
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
void ChangeFolder(CString strNewFolder);
void NewFolder(CString strNewFolder);
void ChangeVolume(float fVol);
CStatusBar * GetStatusBar() {return &m_wndStatusBar;}
CDialogBar * GetDlgBar() {return &m_dlgBar;}
void ShowVolume(int iVol);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public :
CStatusBar m_wndStatusBar;
CDialogBar m_dlgBar;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__51A3D26B_AD0D_44C9_93A0_EFF455BAD771__INCLUDED_)