1 // MainFrm.h : interface of the CMainFrame class
\r
3 /////////////////////////////////////////////////////////////////////////////
\r
5 #if !defined(AFX_MAINFRM_H__CF58719A_1B31_4BC0_8E55_06E0AE5BED2E__INCLUDED_)
\r
6 #define AFX_MAINFRM_H__CF58719A_1B31_4BC0_8E55_06E0AE5BED2E__INCLUDED_
\r
10 #endif // _MSC_VER > 1000
\r
13 #include "optionsdlg.h"
\r
14 #include "104Keyboard.h"
\r
15 #include "109Keyboard.h"
\r
16 #include "properties.h"
\r
18 enum KEYBOARD_TYPE { UNKNOWN_KEYBOARD, ENGLISH_KEYBOARD, JAPANESE_KEYBOARD, MAX_KEYBOARD_TYPE };
\r
20 class CMainFrame : public CFrameWnd
\r
23 protected: // create from serialization only
\r
27 DECLARE_DYNCREATE(CMainFrame)
\r
36 // ClassWizard generated virtual function overrides
\r
37 //{{AFX_VIRTUAL(CMainFrame)
\r
40 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
\r
45 virtual ~CMainFrame();
\r
47 virtual void AssertValid() const;
\r
48 virtual void Dump(CDumpContext& dc) const;
\r
51 // Generated message map functions
\r
53 //{{AFX_MSG(CMainFrame)
\r
54 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
\r
55 afx_msg void OnAbout();
\r
56 afx_msg void OnQuit();
\r
57 afx_msg void OnDisable();
\r
58 afx_msg void OnProperties();
\r
59 afx_msg void OnOptions();
\r
60 afx_msg void OnKeyboard();
\r
61 afx_msg void OnImport();
\r
62 afx_msg void OnExport();
\r
63 afx_msg void OnReset();
\r
64 afx_msg void OnHelpFinder();
\r
65 afx_msg void OnKeyboardAnyUser();
\r
67 afx_msg LRESULT OnPowerBroadCast(WPARAM wParam, LPARAM lParam);
\r
68 DECLARE_MESSAGE_MAP()
\r
70 BOOL m_bKeyboardDlgExist[MAX_KEYBOARD_TYPE][MAX_HKEY_TYPE];
\r
71 int m_nResultKeyboardDlg[MAX_KEYBOARD_TYPE][MAX_HKEY_TYPE];
\r
72 C109Keyboard *m_p109KeyboardDlg[MAX_HKEY_TYPE];
\r
73 C104Keyboard *m_p104KeyboardDlg[MAX_HKEY_TYPE];
\r
74 void PopUpKeyboardDialog(HKEY_TYPE hkeyType);
\r
75 void SetForegroundTheDialog(CDialog *pDialog);
\r
76 void CloseDialog(CDialog *pDialog, int *pnResult);
\r
77 void SetForegroundSomeDialog();
\r
78 void PopUpOptionsDialog();
\r
79 void PopUpDialog(CDialog *pDialog, int *pnDialogExist, BOOL *pbDialogExist);
\r
80 void PopUpAboutDialog();
\r
81 void PopUpPropertiesDialog();
\r
82 void ShowRightMenu(ICON_TYPE icon);
\r
83 BOOL m_bPropertiesDlgExist;
\r
84 BOOL m_bOptionsDlgExist;
\r
85 BOOL m_bAboutDlgExist;
\r
86 COptionsDlg *m_pOptionsDlg;
\r
87 int m_nResultOptionsDlg;
\r
88 CAboutDlg *m_pAboutDlg;
\r
89 int m_nResultAboutDlg;
\r
90 int m_nResultPropertiesDlg;
\r
91 CProperties *m_pPropertiesDlg;
\r
93 BOOL m_bIcon[MAX_ICON_TYPE];
\r
94 HICON m_hIcon[MAX_ICON_TYPE][MAX_STATUS];
\r
95 DWORD m_dwOldMessage[MAX_ICON_TYPE];
\r
96 NOTIFYICONDATA m_stNtfyIcon[MAX_ICON_TYPE];
\r
97 NOTIFYICONDATA m_stOldNtfyIcon[MAX_ICON_TYPE];
\r
98 void AddShell_NotifyIcon(ICON_TYPE icon);
\r
99 void DeleteShell_NotifyIcon(ICON_TYPE icon);
\r
100 BOOL DoShell_NotifyIcon(ICON_TYPE icon, DWORD dwMessage);
\r
101 void DeleteAllShell_NotifyIcon();
\r
102 void AddAllShell_NotifyIcon();
\r
103 BOOL m_bPollIconMessage;
\r
105 void StartPollThread();
\r
106 void TerminatePollThread();
\r
107 static DWORD WINAPI PollIconMessage(LPVOID lpParam);
\r
109 void EnableShell_NotifyIcon(ICON_TYPE icon, BOOL bEnable);
\r
112 /////////////////////////////////////////////////////////////////////////////
\r
114 //{{AFX_INSERT_LOCATION}}
\r
115 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
117 #endif // !defined(AFX_MAINFRM_H__CF58719A_1B31_4BC0_8E55_06E0AE5BED2E__INCLUDED_)
\r