📄 caisoftdlg.h
字号:
// caisoftDlg.h : header file
//
#if !defined(AFX_CAISOFTDLG_H__B4B3B5BF_7499_41C6_99C5_75E37EB1C6CD__INCLUDED_)
#define AFX_CAISOFTDLG_H__B4B3B5BF_7499_41C6_99C5_75E37EB1C6CD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CaisoftDlg dialog
#include "demowindow.h"
#include "colorbutton.h"
class CaisoftDlg : public CDialog
{
// Construction
public:
int m_fullscreen;
void m_showpwindow();
void S_SetParameter(float *Parameter, int parameter_num);
int windowstate;
ColorButton m_special_function2;
ColorButton m_special_function1;
ColorButton m_special_function3;
ColorButton m_special_function4;
CBitmapButton m_buttondn;
CBitmapButton m_buttonup;
CBitmapButton m_buttonlt;
CBitmapButton m_buttonrt;
CBitmapButton m_buttonrs;
CStatic m_pval[5];
CStatic m_pname[5];
CScrollBar m_pvalbar[5];
void SetDemoEnv();
void SetDemoName();
bool S_IsStop;
CMenu *m_menu;
CToolBar m_toolbar;
CaisoftDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CaisoftDlg)
enum { IDD = IDD_CAISOFT_DIALOG };
CComboBox m_demoID;
demowindow m_demowindow;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CaisoftDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CaisoftDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnToolExit();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnToolBegin();
afx_msg void OnToolDemo1();
afx_msg void OnMenuAbout();
afx_msg void OnToolFullScreen();
afx_msg void OnToolPause();
afx_msg void OnToolDemo2();
afx_msg void OnToolDemo3();
afx_msg void OnToolRotateUd();
afx_msg void OnToolRotateLr();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnToolOpenFile();
afx_msg void OnToolSaveFile();
afx_msg void OnToolHang();
afx_msg void OnToolSavePic();
afx_msg void OnToolResume();
afx_msg void OnToolEdit();
afx_msg void OnToolSound();
afx_msg void OnToolText();
afx_msg void OnToolHelp();
afx_msg void OnToolSaveData();
afx_msg void OnToolBackward();
afx_msg void OnToolForward();
afx_msg void OnToolMedia();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnSpecialFunction1();
afx_msg void OnSpecialFunction2();
afx_msg void OnSpecialFunction3();
afx_msg void OnSpecialFunction4();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnSelchangeCombo();
afx_msg void OnButtonup();
afx_msg void OnButtondn();
afx_msg void OnButtonlt();
afx_msg void OnButtonrs();
afx_msg void OnButtonrt();
afx_msg void OnMenuPCAIDE();
afx_msg void OnMenuSetColor();
afx_msg void OnMenuSaveSet();
afx_msg void OnMenuSetSpeed();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void m_readset();
void m_hidepwindow();
void m_setpwindow();
CStatic m_pwindow;
char title[255];
void S_SetSpecialFunction();
void SetButtonForDemo3();
void SetButtonForDemo2();
void SetButtonForDemo1();
int OpenFile();
int SaveFile();
void SetButtonStyle(int i,UINT style);
float angle1,angle2;
bool m_mousedown;
CPoint point_begin; // 鼠标点击
void SetParameter(FILE *fp);
int S_rotate;
int m_speed;
int p_parameter_num; // 参数窗口
int p_parameter_attrib[5];
int p_function_attrib[4];
int p_button_attrib[5];
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAISOFTDLG_H__B4B3B5BF_7499_41C6_99C5_75E37EB1C6CD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -