Develop and Download Open Source Software

Browse CVS Repository

Contents of /tombo/Tombo/Src/PocketPCPlatform.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download) (as text)
Sun Sep 3 12:56:34 2006 UTC (17 years, 7 months ago) by hirami
Branch: MAIN
CVS Tags: Tombo_2_0b2, Tombo_2_0b3, Tombo_2_0b1, Tombo_2_0b4, B228, B229, B226, B227, B225, B231, B230, HEAD
Changes since 1.6: +1 -1 lines
File MIME type: text/x-chdr
* In edit view, display "OK" button insted of "x" on title bar.
* Support WM5 style menubar(WM5 version).
* FIX: Input method ATOK is not work good on W-ZERO3[es].
	This fix is port from B221.

- L9N is not completed(menubar label)

1 #ifndef POCKETPCPLATFORM_H
2 #define POCKETPCPLATFORM_H
3 #if defined(PLATFORM_PKTPC)
4
5 #define PLATFORM_TYPE PocketPCPlatform
6
7 #define SHGetMenu(hWndMB) (HMENU)SendMessage((hWndMB), SHCMBM_GETMENU, (WPARAM)0, (LPARAM)0)
8 #define SHGetSubMenu(hWndMB,ID_MENU) (HMENU)SendMessage((hWndMB), SHCMBM_GETSUBMENU, (WPARAM)0, (LPARAM)ID_MENU)
9 #define SHSetSubMenu(hWndMB,ID_MENU) (HMENU)SendMessage((hWndMB), SHCMBM_SETSUBMENU, (WPARAM)0, (LPARAM)ID_MENU)
10
11 class PocketPCPlatform : public PlatformLayer {
12 public:
13 HWND hMSCmdBar;
14 HWND hMDCmdBar;
15
16 void Create(HWND hWnd, HINSTANCE hInst);
17
18 HMENU GetMDToolMenu();
19 HMENU GetMSEditMenu();
20 HMENU GetMSBookMarkMenu();
21
22 void EnableMenu(UINT uid, BOOL bEnable);
23 void EnableSearchNext();
24 void CheckMenu(UINT uid, BOOL bCheck);
25
26 void OpenDetailsView();
27 void CloseDetailsView();
28
29 void AdjustUserRect(RECT *r);
30
31 void ShowStatusBar(BOOL bShow) {/* nop */}
32 void SetStatusIndicator(DWORD nPos, LPCTSTR pText, BOOL bDisp) { /* nop */ }
33 WORD GetStatusBarHeight() { return 0; }
34 void ResizeStatusBar(WPARAM wParam, LPARAM lParam) { /* nop */ }
35 void GetStatusWindowRect(RECT *pRect);
36
37 static PocketPCPlatform *PlatformFactory() { return new PocketPCPlatform(); }
38
39 static HMENU LoadSelectViewPopupMenu();
40 static HMENU LoadDetailsViewPopupMenu();
41 };
42
43 #endif
44
45 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26