📄 p_cdlg.h
字号:
/************************************************************************
* 版权所有 (C)2003,windcao(曹建峰)
* 作 者: 曹建峰
* 完成日期: 2004年1月9日
* 修改日期 版本号 修改人 修改内容
************************************************************************/
// P_CDlg.h : header file
//
#if !defined(AFX_P_CDLG_H__40A7139A_B510_4B55_8E12_F121F392A8E8__INCLUDED_)
#define AFX_P_CDLG_H__40A7139A_B510_4B55_8E12_F121F392A8E8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <afxmt.h>
#include "ProducerThread.h" // Added by ClassView
#include "ConsumerThread.h" // Added by ClassView
/////////////////////////////////////////////////////////////////////////////
// CP_CDlg dialog
class CP_CDlg : public CDialog
{
// Construction
public:
void Updata();
void Init();
void Start();
bool m_bUpdateAuto;
bool m_bSlow;
CProducerThread *m_pProducerThread;
CConsumerThread *m_pConsumerThread;
CSemaphore* m_pSemaphoreEmpty;
CSemaphore* m_pSemaphoreFull;
CMutex *m_pMutex;
CP_CDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CP_CDlg)
enum { IDD = IDD_P_C_DIALOG };
CButton m_btSlow;
CString m_sBufCSM;
CString m_sBuf;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CP_CDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CP_CDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnButtonUpdate();
afx_msg void OnTimer(UINT nIDEvent);
virtual void OnCancel();
afx_msg void OnButtonSlow();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_P_CDLG_H__40A7139A_B510_4B55_8E12_F121F392A8E8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -