2001-11-19 00:33:36 +00:00
|
|
|
#ifndef CMSWINDOWSSECONDARYSCREEN_H
|
|
|
|
#define CMSWINDOWSSECONDARYSCREEN_H
|
|
|
|
|
|
|
|
#include "CMSWindowsScreen.h"
|
|
|
|
#include "ISecondaryScreen.h"
|
|
|
|
|
|
|
|
class CMSWindowsSecondaryScreen : public CMSWindowsScreen, public ISecondaryScreen {
|
|
|
|
public:
|
|
|
|
CMSWindowsSecondaryScreen();
|
|
|
|
virtual ~CMSWindowsSecondaryScreen();
|
|
|
|
|
|
|
|
// ISecondaryScreen overrides
|
|
|
|
virtual void run();
|
|
|
|
virtual void stop();
|
|
|
|
virtual void open(CClient*);
|
|
|
|
virtual void close();
|
|
|
|
virtual void enter(SInt32 xAbsolute, SInt32 yAbsolute);
|
|
|
|
virtual void leave();
|
|
|
|
virtual void keyDown(KeyID, KeyModifierMask);
|
|
|
|
virtual void keyRepeat(KeyID, KeyModifierMask, SInt32 count);
|
|
|
|
virtual void keyUp(KeyID, KeyModifierMask);
|
|
|
|
virtual void mouseDown(ButtonID);
|
|
|
|
virtual void mouseUp(ButtonID);
|
|
|
|
virtual void mouseMove(SInt32 xAbsolute, SInt32 yAbsolute);
|
|
|
|
virtual void mouseWheel(SInt32 delta);
|
2001-11-25 18:32:41 +00:00
|
|
|
virtual void setClipboard(const IClipboard*);
|
|
|
|
virtual void grabClipboard();
|
2001-11-19 00:33:36 +00:00
|
|
|
virtual void getSize(SInt32* width, SInt32* height) const;
|
|
|
|
virtual SInt32 getJumpZoneSize() const;
|
2001-11-25 18:32:41 +00:00
|
|
|
virtual void getClipboard(IClipboard*) const;
|
2001-11-19 00:33:36 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// CMSWindowsScreen overrides
|
2001-11-25 18:32:41 +00:00
|
|
|
virtual bool onPreTranslate(MSG*);
|
|
|
|
virtual LRESULT onEvent(HWND, UINT, WPARAM, LPARAM);
|
2001-11-19 00:33:36 +00:00
|
|
|
virtual void onOpenDisplay();
|
|
|
|
virtual void onCloseDisplay();
|
|
|
|
|
|
|
|
private:
|
|
|
|
UINT mapKey(KeyID, KeyModifierMask) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
CClient* m_client;
|
|
|
|
HWND m_window;
|
2001-11-25 18:32:41 +00:00
|
|
|
HWND m_nextClipboardWindow;
|
|
|
|
HWND m_clipboardOwner;
|
2001-11-19 00:33:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|