⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 window.h

📁 做为linux下图形用户界面支持系统之一的MicroWindows采用C++设计
💻 H
字号:
//
// Micro Windows Implementation
// window.h: standard Window
//
// 一個標準的「視窗」出現了! 我們再一次地運用到繼承機制.
//
// $Revision: 1.2 $
// $Source: P:/MWINDOWS/INCLUDE/rcs/window.h $
// $Date: 1993/10/03 15:20:25 $
//

#ifndef __window_h
#define __window_h

#ifndef __multview_h
#   include "multview.h"
#endif

class Text;

class Window : public MultiView
{
public:
    Window (char *captionText, Rect *prect, View *pparent, Model *client,
            BOOL attach = FALSE,
            BOOL killModel = FALSE);
    ~Window ();

    virtual void    activate ();
    virtual void    deactivate ();
    virtual void    setCaption (char *captionText);
    virtual void    setResizable (BOOL flag = TRUE);
    virtual void    setAlwaysOnTop (BOOL flag = FALSE);
    virtual void    resize (int width, int height, View *parrent = NULL);

protected:
    virtual void    selfDraw (Port *port, Rect *area);
    virtual void    selfMouse (Message *msg);
    virtual void    drawCaption ();
    virtual void    setupWidgets ();
    ResizePlace     getResizePlace (Point *pnt);

    Text   *caption;
    Rect    captionRect, closeRect, maximizeRect;
    Rect    resizeBorderRect, barRect;
    BOOL    mouseFirstDown;

    Rect    origRect;
    BOOL    maximized;

    BOOL    activeFlag;
    BOOL    resizable;
    BOOL    alwaysOnTop;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -