childview.h

来自「利用遗传算法自动进行排课」· C头文件 代码 · 共 61 行

H
61
字号

class Schedule;
enum AlgorithmState;

#pragma once

class CChildView : public CWnd
{

public:

	CChildView();

	virtual ~CChildView();

private:

	CCriticalSection _sect;

	Schedule* _schedule;

	bool _running;

public:

	void SetSchedule(const Schedule* schedule);

	void SetNewState(AlgorithmState state);

private:

	void ComputeScrollBars();

	void Scroll(int scrollBar, int nSBCode, int nPos);

protected:

	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

protected:

	afx_msg void OnPaint();
	DECLARE_MESSAGE_MAP()

public:

	afx_msg void OnFileStart();
	afx_msg void OnFileStop();
	afx_msg void OnFileOpenConfiguration();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnClose();
	afx_msg void OnUpdateFileOpenConfiguration(CCmdUI *pCmdUI);
	afx_msg void OnUpdateFileStart(CCmdUI *pCmdUI);
	afx_msg void OnUpdateFileStop(CCmdUI *pCmdUI);
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?