Browse CVS Repository
Contents of /tombo/Tombo/Src/WM5Platform.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1 -
( show annotations)
( download)
( as text)
Sun Sep 3 12:56:34 2006 UTC
(17 years, 7 months ago)
by hirami
Branch: MAIN
CVS Tags: B225, Tombo_2_0b4, Tombo_2_0b2, Tombo_2_0b3, Tombo_2_0b1, B228, B229, B231, B230, B227, B226, HEAD
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 WM5PLATFORM_H |
| 2 |
#define WM5PLATFORM_H |
| 3 |
#if defined(PLATFORM_WM5) |
| 4 |
|
| 5 |
#define PLATFORM_TYPE WM5Platform |
| 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 WM5Platform : public PlatformLayer { |
| 12 |
HWND hMainWnd; |
| 13 |
HWND hMSCmdBar; |
| 14 |
HWND hMDCmdBar; |
| 15 |
|
| 16 |
public: |
| 17 |
|
| 18 |
void Create(HWND hWnd, HINSTANCE hInst); |
| 19 |
|
| 20 |
HMENU GetMDToolMenu(); |
| 21 |
HMENU GetMSBookMarkMenu(); |
| 22 |
|
| 23 |
void EnableMenu(UINT uid, BOOL bEnable); |
| 24 |
void EnableSearchNext(); |
| 25 |
void CheckMenu(UINT uid, BOOL bCheck); |
| 26 |
|
| 27 |
void OpenDetailsView(); |
| 28 |
void CloseDetailsView(); |
| 29 |
|
| 30 |
void AdjustUserRect(RECT *r); |
| 31 |
|
| 32 |
void ShowStatusBar(BOOL bShow) {/* nop */} |
| 33 |
void SetStatusIndicator(DWORD nPos, LPCTSTR pText, BOOL bDisp) { /* nop */ } |
| 34 |
WORD GetStatusBarHeight() { return 0; } |
| 35 |
void ResizeStatusBar(WPARAM wParam, LPARAM lParam) { /* nop */ } |
| 36 |
void GetStatusWindowRect(RECT *pRect); |
| 37 |
|
| 38 |
static WM5Platform *PlatformFactory() { return new WM5Platform(); } |
| 39 |
|
| 40 |
static HMENU LoadSelectViewPopupMenu(); |
| 41 |
static HMENU LoadDetailsViewPopupMenu(); |
| 42 |
}; |
| 43 |
|
| 44 |
#endif |
| 45 |
|
| 46 |
#endif |
| |