Browse CVS Repository
Contents of /tombo/Tombo/Src/Win32Platform.h
Parent Directory
| Revision Log
| Revision Graph
Revision 1.6 -
( show annotations)
( download)
( as text)
Fri Oct 8 18:32:04 2004 UTC
(19 years, 6 months ago)
by hirami
Branch: MAIN
CVS Tags: Tombo_2_0a3, Tombo_2_0a2, Tombo_2_0a1, Tombo_1_17_1, B191, B192, B193, B194, B196, B197, B198, B199, B200, B201, B202, B203, B205, B206, B207, B208, B183, B181, B180, B187, B186, B184, B189, B188, B213, B212, B211, B217, B216, B215, B214, B219, B218, Tombo_2_0b2, Tombo_2_0b3, Tombo_2_0b1, Tombo_2_0b4, B228, B229, B226, B227, B224, B225, B222, B223, B220, B221, B172, B156, B157, B173, B158, B159, B171, Tombo_1_13, SNAPSHOT20051220, Tombo_1_12, B231, B230, Tombo_1_15, Tombo_1_14, Tombo_1_17, Tombo_1_16, B177, B174, B175, B178, B179, B164, B169, B168, B165, SNAPSHOT_20041121, B166, B161, B160, B163, B162, HEAD
Branch point for: Tombo_1_17_1_branch
Changes since 1.5: +2 -0 lines
File MIME type: text/x-chdr
* PocketPC style property page supprot
* VGA support
* Create project for VGA mode.
* VGA resolution support.
* Change bitmap size 16x16 -> 24x24 for VGA mode.
* Landscape mode support.
| 1 |
#ifndef WIN32PLATFORM_H |
| 2 |
#define WIN32PLATFORM_H |
| 3 |
#if defined(PLATFORM_WIN32) |
| 4 |
|
| 5 |
#define PLATFORM_TYPE Win32Platform |
| 6 |
|
| 7 |
|
| 8 |
class StatusBar; |
| 9 |
|
| 10 |
class Win32Platform : public PlatformLayer { |
| 11 |
protected: |
| 12 |
void ControlMenu(BOOL bTreeActive); |
| 13 |
void ControlToolbar(BOOL bTreeActive); |
| 14 |
|
| 15 |
StatusBar *pStatusBar; |
| 16 |
public: |
| 17 |
HWND hRebar; |
| 18 |
HWND hToolBar; |
| 19 |
|
| 20 |
Win32Platform(); |
| 21 |
virtual ~Win32Platform(); |
| 22 |
|
| 23 |
void Create(HWND hWnd, HINSTANCE hInst); |
| 24 |
|
| 25 |
HWND GetMainToolBar() { return hToolBar; } |
| 26 |
|
| 27 |
HMENU GetMainMenu() { return GetMenu(hMainWnd); } |
| 28 |
HMENU GetMDToolMenu() { return GetMainMenu(); } |
| 29 |
HMENU GetMSEditMenu() { return GetMainMenu(); } |
| 30 |
HMENU GetMSBookMarkMenu() { return GetSubMenu(GetMainMenu(), BOOKMARK_MENU_POS); } |
| 31 |
|
| 32 |
void EnableMenu(UINT uid, BOOL bEnable); |
| 33 |
void EnableSearchNext(); |
| 34 |
void CheckMenu(UINT uid, BOOL bCheck); |
| 35 |
|
| 36 |
void OpenDetailsView(); |
| 37 |
void CloseDetailsView(); |
| 38 |
|
| 39 |
void AdjustUserRect(RECT *r); |
| 40 |
|
| 41 |
void ShowStatusBar(BOOL bShow); |
| 42 |
void ShowRebar(BOOL bShow); |
| 43 |
|
| 44 |
void SetStatusIndicator(DWORD nPos, LPCTSTR pText, BOOL bDisp); |
| 45 |
WORD GetStatusBarHeight(); |
| 46 |
void ResizeStatusBar(WPARAM wParam, LPARAM lParam); |
| 47 |
void GetStatusWindowRect(RECT *pRect); |
| 48 |
|
| 49 |
static Win32Platform *PlatformFactory() { return new Win32Platform(); } |
| 50 |
|
| 51 |
static HMENU LoadMainMenu(); |
| 52 |
static HMENU LoadContextMenu(DWORD nFlg); |
| 53 |
}; |
| 54 |
|
| 55 |
#endif // PLATFORM_WIN32 |
| 56 |
#endif |
| |