📄 suggestdlg.h
字号:
/***************************************************************************/
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -