模拟拼音输入法Dlg.h
上传用户:sztcmy
上传日期:2013-01-09
资源大小:154k
文件大小:2k
- // 模拟拼音输入法Dlg.h : header file
- //
- #if !defined(AFX_DLG_H__3FB0B674_FADB_41A3_A5C1_78D2089E9C18__INCLUDED_)
- #define AFX_DLG_H__3FB0B674_FADB_41A3_A5C1_78D2089E9C18__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CMyDlg dialog
- class CMyDlg : public CDialog
- {
- // Construction
- public:
- CMyDlg(CWnd* pParent = NULL); // standard constructor
- void ChangeOrder(); //修改汉字先后顺序
- void ShowText(); //接收汉字
- void DisplayHanzi(); //显示提示汉字
- void ReadFile(); //读取文件
- CString strstr1; //保存用户输入的拼音
- CString strstr2;
- int flag; //标志是否找到拼音对应的汉字
- int page; //翻页的变量
- int length; //保存汉字所占的字节数
- int Num;
- struct Array
- {
- unsigned char ch[3];
- }MyArray[500]; //用来存放汉字的数组
- CMapStringToString m_Map; //定义映射对象
- // Dialog Data
- //{{AFX_DATA(CMyDlg)
- enum { IDD = IDD_MY_DIALOG };
- // NOTE: the ClassWizard will add data members here
- CString m_text;
- CString m_hanzi;
- CString m_pinyin;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyDlg)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CMyDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnChangeInputpy();
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnExit();
- afx_msg void OnAbout();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DLG_H__3FB0B674_FADB_41A3_A5C1_78D2089E9C18__INCLUDED_)