📄 mymoni~1.h
字号:
// MyMonitor.h : main header file for the MYMONITOR application
//
#if !defined(AFX_MYMONITOR_H__DB316DD7_7F39_11D4_974C_0080C8F60D90__INCLUDED_)
#define AFX_MYMONITOR_H__DB316DD7_7F39_11D4_974C_0080C8F60D90__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#define ABOUT_VERSION "UDP Socket test :)"
#define UDP_THREAD_NUMBER 3 // the total number of UDP threads
//LOG_LEVEL
// =1 : record LOG only
// =2 : record LOG & INFO
// =3 : record LOG & INFO & NOTE
#define LOG_LEVEL 2
#define LOG_STR_MAIN_NAME "Main - "
#define LOG_STR_THREAD_NAME "Thread - "
#define LOG_STR_SOCKET_NAME "Socket - "
#define LOG_STR_UNKNOWN "Unknown MyUdp State - "
#define LOG_STR_SOCKET_CREATE_ERROR "Socket Create Error - "
#define LOG_STR_SOCKET_ERROR "Socket Connect Error - "
#define LOG_STR_SOCKET_RECEIVE_ERROR "Socket Receive Error - "
#define DEFAULT_LOG_PATH ".\\UDPLogs\\"
#define DEFAULT_INI_FILE ".\\UDPtest.ini"
#define TIMER_ID_SPLASH 0x3000 // timer used in Splash
#define TIMER_ID_MAINFRAME 0x3001 // timer used in Mainframe
#define WM_MYUDP_CALLBACK WM_APP+0x2288
#define WM_SHOW_LOGO WM_MYUDPC_CALLBACK+1
#define PERIOD_LOGO 2500
#define MY_UDP_STATUS_CONNECTED 0x1000
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CMyMonitorApp:
// See MyMonitor.cpp for the implementation of this class
//
class CMyMonitorApp : public CWinApp
{
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
CMyMonitorApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyMonitorApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CMyMonitorApp)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYMONITOR_H__DB316DD7_7F39_11D4_974C_0080C8F60D90__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -