00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #if !defined(__WSWIN1_H__)
00018 #define __WSWIN1_H__
00019
00020 #include "Base.h"
00021
00023
00025 class CMainWindow : public CWindow
00026 {
00027 public:
00028 CMainWindow (CWsClient* aClient);
00029 ~CMainWindow ();
00030 void Draw (const TRect& aRect);
00031 void HandlePointerEvent (TPointerEvent& aPointerEvent);
00032 };
00033
00034 class CSmallWindow : public CWindow
00035 {
00036 public:
00037 CSmallWindow (CWsClient* aClient);
00038 ~CSmallWindow ();
00039 void Draw (const TRect& aRect);
00040 void HandlePointerEvent (TPointerEvent& aPointerEvent);
00041 };
00042
00043
00045
00047
00048 class CExampleWsClient : public CWsClient
00049 {
00050 public:
00051 static CExampleWsClient* NewL(const TRect& aRect);
00052 void HandleKeyEventL(struct TKeyEvent &aKeyEvent);
00053 private:
00054
00055 CExampleWsClient (const TRect& aRect);
00056 void ConstructMainWindowL();
00057 ~CExampleWsClient ();
00058 void RunL ();
00059 private:
00060 CMainWindow* iMainWindow;
00061 CMainWindow* iAnotherWindow;
00062 CSmallWindow* iSmallWindow;
00063 const TRect& iRect;
00064 };
00065
00066 #endif