📄 mainframe.h
字号:
#pragma once
#include "ChildView.h"
#include "LeftView.h"
class MainFrame : public CFrameWnd
{
DECLARE_DYNAMIC(MainFrame)
public:
void OnDestroy();
BOOL DestroyWindow();
BOOL PreCreateWindow(CREATESTRUCT& cs);
BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
CSplitterWnd wndSplitter;
void OnTimer(UINT nIDEvent);
protected:
CStatusBar wndStatusBar;
int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
};
enum StateChannel
{
CH_IDLE,
CH_TALK,
CH_WAIT_TALK
};
enum StateConference
{
CO_IDLE,
CO_IN_CONFERENCE,
CO_CREATE_OR_JOIN, /* Alias: WAIT_1 */
CO_HOW_TO_JOIN, /* Alias: WAIT_2 */
CO_WHO_TO_TALK_SECURELY /* Alias: WAIT_3 */
};
// User's Messages
enum
{
TO_START = WM_USER + 0x40 /* Synway reserved */,
TO_END,
};
// Tag for master channel.
enum MasterType
{
NOT,
MASTER_BUSY,
MASTER_IDLE
};
class Channel
{
public:
StateChannel state_channel; // See channel flowchart
StateConference state_conference; // See conference flowchart
int type; // Channel type
string dtmf_str; // My own dtmf buffer, never use system's buffer when you are in the event mode
int conf_to_join; // Store conf_id temporarily before joining
MasterType master; // Whether being reserved for master
bool creater; // Creator?
bool BgSoundEnabled; // Play background sound, for master only;
int BgSoundVolume; // Background sound volume, for master only;
bool IsPlayingBgSound; // Whether playing background sound;
WORD last_join_mode; // Used to support talk securely;
int ch_to_talk_securely; // Used to support talk securely;
};
extern Channel *channels;
int get_master(int conf);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -