📄 statisticsdlg.h
字号:
/*
*
* Copyright (C) 2004-2006, Freescale Semiconductor, Inc. All Rights Reserved.
* THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
* AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
*
* File: APPS/CAMAPP/StatisticsDlg.h
* Purpose: This file declares a class that will house the Statistics dialog box.
* Notes:
*
*/
/*********************************************************************
INCLUDE FILES
*********************************************************************/
#include <windows.h>
#include "CameraWindow.h"
/*********************************************************************
GLOBAL DEFINITIONS
*********************************************************************/
#define SD_SHOW WM_APP+3
#define SD_UPDATE WM_APP+4
#define SD_CLOSED WM_APP+5
/*********************************************************************
GLOBAL OR STATIC VARIABLES
*********************************************************************/
/*********************************************************************
ENUMERATIONS AND STRUCTURES
*********************************************************************/
/*********************************************************************
EXPORTED FUNCTIONS
*********************************************************************/
BOOL CALLBACK StatisticsDialogProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
/*********************************************************************
CLASS DEFINITIONS
*********************************************************************/
class CStatisticsDlg
{
public:
CStatisticsDlg();
~CStatisticsDlg();
BOOL Init(HWND hWnd);
BOOL Fini();
void Update(stats_t *pStats);
BOOL Show(int iShowCmd);
//BOOL HandleNotifyMsg(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
HWND m_hWnd;
HWND m_hWndParent;
HWND m_hListView;
private:
double m_dFrameRate;
double m_dActualRate;
bool m_bFRChanged;
bool m_bARChanged;
INT m_iFRIndex;
INT m_iARIndex;
void RefreshItem(int iIndex,
TCHAR * pszTitle,
TCHAR * pszText,
HDC hdc);
void InsertTwoItems(int iIndex);
void Refresh();
};
/*********************************************************************
END OF FILE
*********************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -