suggestdlg.h

来自「语法检查程序」· C头文件 代码 · 共 77 行

H
77
字号
/***************************************************************************/
/* NOTE:                                                                   */
/* This document is copyright (c) by Oz Solomon and Yonat Sharon, and is   */
/* bound by the MIT open source license.                                   */ 
/* See License.txt or visit www.opensource.org/licenses/mit-license.html   */
/***************************************************************************/

#if !defined(AFX_SUGGESTDLG_H__4EB71FE0_43DB_11D1_ADCE_C02479000000__INCLUDED_)
#define AFX_SUGGESTDLG_H__4EB71FE0_43DB_11D1_ADCE_C02479000000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// SuggestDlg.h : header file
//

#include "Label.h"

/////////////////////////////////////////////////////////////////////////////
// CSuggestDlg dialog

class CSuggestDlg : public CDialog
{
// Construction
public:
	CSuggestDlg(
        const CString&  inWord,
        char**          outSuggestions,
        SIZE&           inoutPosition,
        CWnd*           pParent = NULL);
    CString GetReplacement() {return m_Replacement;}

// Dialog Data
	//{{AFX_DATA(CSuggestDlg)
	enum { IDD = IDD_SUGGEST_DLG };
	CLabel	m_DisplayedWord;
	CComboBox	m_Suggestions;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSuggestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSuggestDlg)
	virtual void OnOK();
	afx_msg void OnIgnore();
	virtual BOOL OnInitDialog();
	afx_msg void OnIgnoreall();
	afx_msg void OnLearn();
	afx_msg void OnDestroy();
	afx_msg void OnReplaceAll();
	afx_msg void OnDblclkSuggestions();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	bool CheckReplacement();
    char**  m_SugStrings;
    CString m_Word;
    CString m_Replacement;
    CRect   m_InitialRect;
    SIZE&   m_Position;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SUGGESTDLG_H__4EB71FE0_43DB_11D1_ADCE_C02479000000__INCLUDED_)

⌨️ 快捷键说明

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