OSDN Git Service

Move some declarations in xkeymacs/profile.h and xkeymacs/xkeymacs.h
[xkeymacs/xkeymacs.git] / xkeymacs / xkeymacs.h
1 // xkeymacs.h : main header file for the XKEYMACS application\r
2 //\r
3 \r
4 #if !defined(AFX_XKEYMACS_H__2E65B9CB_5ADB_4C3B_891F_8EFE395FBB2D__INCLUDED_)\r
5 #define AFX_XKEYMACS_H__2E65B9CB_5ADB_4C3B_891F_8EFE395FBB2D__INCLUDED_\r
6 \r
7 #if _MSC_VER > 1000\r
8 #pragma once\r
9 #endif // _MSC_VER > 1000\r
10 \r
11 #ifndef __AFXWIN_H__\r
12         #error include 'stdafx.h' before including this file for PCH\r
13 #endif\r
14 \r
15 #include "resource.h"       // main symbols\r
16 \r
17 enum Instance\r
18 {\r
19         FirstInstance,\r
20         SecondInstance,\r
21 };\r
22 \r
23 \r
24 /////////////////////////////////////////////////////////////////////////////\r
25 // CXkeymacsApp:\r
26 // See xkeymacs.cpp for the implementation of this class\r
27 //\r
28 \r
29 class CXkeymacsApp : public CWinApp\r
30 {\r
31 public:\r
32         CXkeymacsApp();\r
33 \r
34 // Overrides\r
35         // ClassWizard generated virtual function overrides\r
36         //{{AFX_VIRTUAL(CXkeymacsApp)\r
37         public:\r
38         virtual BOOL InitInstance();\r
39         virtual int ExitInstance();\r
40         //}}AFX_VIRTUAL\r
41 \r
42 // Implementation\r
43         //{{AFX_MSG(CXkeymacsApp)\r
44         afx_msg void OnAppAbout();\r
45                 // NOTE - the ClassWizard will add and remove member functions here.\r
46                 //    DO NOT EDIT what you see in these blocks of generated code !\r
47         //}}AFX_MSG\r
48         DECLARE_MESSAGE_MAP()\r
49 private:\r
50         Instance m_Instance;\r
51         HANDLE m_hMutex;\r
52 };\r
53 \r
54 /////////////////////////////////////////////////////////////////////////////\r
55 // CAboutDlg dialog used for App About\r
56 \r
57 class CAboutDlg : public CDialog\r
58 {\r
59 public:\r
60         CAboutDlg();\r
61 \r
62 // Dialog Data\r
63         //{{AFX_DATA(CAboutDlg)\r
64         enum { IDD = IDD_ABOUTBOX };\r
65         CStatic m_cURL;\r
66         CString m_szVersionInformation;\r
67         CString m_szLegalCopyright;\r
68         //}}AFX_DATA\r
69 \r
70         // ClassWizard generated virtual function overrides\r
71         //{{AFX_VIRTUAL(CAboutDlg)\r
72         protected:\r
73         virtual void DoDataExchange(CDataExchange *pDX);    // DDX/DDV support\r
74         //}}AFX_VIRTUAL\r
75 \r
76 // Implementation\r
77 protected:\r
78         //{{AFX_MSG(CAboutDlg)\r
79         virtual void OnOK();\r
80         afx_msg void OnClose();\r
81         afx_msg void OnUrl();\r
82         afx_msg HBRUSH OnCtlColor(CDC *pDC, CWnd *pWnd, UINT nCtlColor);\r
83         afx_msg BOOL OnSetCursor(CWnd *pWnd, UINT nHitTest, UINT message);\r
84         //}}AFX_MSG\r
85         DECLARE_MESSAGE_MAP()\r
86 };\r
87 \r
88 /////////////////////////////////////////////////////////////////////////////\r
89 \r
90 typedef struct Translate {\r
91         WORD wLanguage;\r
92         WORD wCodePage;\r
93 } Translate_t;\r
94 \r
95 //{{AFX_INSERT_LOCATION}}\r
96 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
97 \r
98 #endif // !defined(AFX_XKEYMACS_H__2E65B9CB_5ADB_4C3B_891F_8EFE395FBB2D__INCLUDED_)\r