📄 mutexdlg.h
字号:
// MutexDlg.h : header file
//
#if !defined(AFX_MUTEXDLG_H__A1651E00_828E_11D4_85D5_7CADC3000000__INCLUDED_)
#define AFX_MUTEXDLG_H__A1651E00_828E_11D4_85D5_7CADC3000000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMutexDlg dialog
#include <afxmt.h>
struct QUEUEITEM
{
char szText[80];
QUEUEITEM *pPrev;
QUEUEITEM *pNext;
};
class CMutexDlg : public CDialog
{
// Construction
public:
static UINT StartProcessor (void *pParam);
static UINT StartReceiver (void *pParam);
void DeleteItemFromQueue (QUEUEITEM *pItem);
void AddItemToQueue (QUEUEITEM *pItem);
CMutexDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMutexDlg)
enum { IDD = IDD_MUTEX_DIALOG };
CStatic m_strProcessor;
CStatic m_strReceiver;
//}}AFX_DATA
// CStatic m_strReceiver;
// CStatic m_strProcessor;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMutexDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CRect m_rcProcessor;
CRect m_rcReceiver;
void DrawKey (CRect &rc, bool bDraw = false);
HICON m_hIcon;
CMutex m_Mutex;
CCriticalSection m_cs;
CBitmap m_bmpKey;
CImageList m_Images;
// Generated message map functions
//{{AFX_MSG(CMutexDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MUTEXDLG_H__A1651E00_828E_11D4_85D5_7CADC3000000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -