⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statisticsdlg.h

📁 media player 控件源码 用EVC编译可以进行对WINCE下media player控制
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
///////////////////////////////////////////////////////////////////////////////
// File: StatisticsDlg.h
//
// Desc: This file declares a class that will house the Statistics dialog box.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _STATISTICSDLG_H_
#define _STATISTICSDLG_H_

#define SD_SHOW     WM_APP+3
#define SD_UPDATE   WM_APP+4
#define SD_CLOSED   WM_APP+5

BOOL CALLBACK StatisticsDialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);

class CStatisticsDlg
{
 public:
   struct stats_t
   {
      double dFrameRate;
      double dActualRate;
      long   lFramesDropped;
      long   lBandwidth;
      long   lSourceProtocol;
      long   lReceivedPackets;
      long   lRecoveredPackets;
      long   lLostPackets;
      long   lDroppedAudioPackets;
      TCHAR *szErrorCorrection;
      TCHAR *szFilename;
   };

   CStatisticsDlg();
   ~CStatisticsDlg();

   bool Init(HWND hWnd);
   bool Fini();

   bool Show(int iShowCmd);
   void Update(stats_t *pStats);

   BOOL HandleNotifyMsg(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);

 protected:
   void Refresh();
   void RefreshItem(int iIndex, TCHAR * pszTitle, TCHAR * pszText, HDC hdc, LONG & cx);
   void InsertTwoItems(int iIndex);

 private:
   double m_dFrameRate;
   double m_dActualRate;
   long   m_lFramesDropped;
   long   m_lBandwidth;
   long   m_lSourceProtocol;
   long   m_lReceivedPackets;
   long   m_lRecoveredPackets;
   long   m_lLostPackets;
   long   m_lDroppedAudioPackets;
   TCHAR *m_szErrorCorrection;
   TCHAR *m_szFilename;
   HWND   m_hWnd;
   HWND   m_hWndParent;
   HWND   m_hListView;
   HFONT  m_hFont;
   int    m_iMaxWidth;

   int    m_iFRIndex;
   int    m_iARIndex;
   int    m_iFDIndex;
   int    m_iBWIndex;
   int    m_iSPIndex;
   int    m_iRCIndex;
   int    m_iRPIndex;
   int    m_iLPIndex;
   int    m_iECIndex;
   int    m_iFNIndex;
   int    m_iMIIndex;
   int    m_iADIndex;

   bool   m_bFRChanged;
   bool   m_bARChanged;
   bool   m_bFDChanged;
   bool   m_bBWChanged;
   bool   m_bSPChanged;
   bool   m_bRCChanged;
   bool   m_bRPChanged;
   bool   m_bLPChanged;
   bool   m_bADChanged;
   bool   m_bECChanged;
   bool   m_bFNChanged;
};

#endif /* _STATISTICSDLG_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -