📄 dialog1.h
字号:
#if !defined(AFX_DIALOG1_H__BC0A1666_AD44_48FF_9395_E39C0B02C4AD__INCLUDED_)
#define AFX_DIALOG1_H__BC0A1666_AD44_48FF_9395_E39C0B02C4AD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// dialog1.h : header file
//
#include "ColorStatic.h"
#include "ColorButton.h"
#include "BtnST.h"
/////////////////////////////////////////////////////////////////////////////
// dialog1 dialog
class dialog1 : public CDialog
{
// Construction
public:
float Knaps(float *p,int *w,int *x,int c,int n);
float Backtrack(int i);
float Bound(int i);
int Knapsack(float *p,int *w,int *x,int n,int m);
int knap(float *p,int *w,int *x,int n,int cu);
dialog1(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(dialog1)
enum { IDD = IDD_DIALOG2 };
CEdit m_edit1;
CButtonST m_btnS1;
CButtonST m_btnS4;
CButtonST m_btnS3;
CButtonST m_btnS2;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(dialog1)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CBrush m_brush2;
HICON m_hIcon;
CBitmap m_bmpBackground2;
CColorStatic m_Static1;
CColorStatic m_Static2;
CColorStatic m_Static3;
CColorButton m_ColorBtn1;
// Generated message map functions
//{{AFX_MSG(dialog1)
afx_msg void Onstart();
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnPause();
afx_msg void OnContinue();
afx_msg void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIALOG1_H__BC0A1666_AD44_48FF_9395_E39C0B02C4AD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -