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

📄 desktop.cpp

📁 做为linux下图形用户界面支持系统之一的MicroWindows采用C++设计
💻 CPP
字号:
//
// Micro Windows Implementation
// desktop.cpp
//
// $Revision: 1.4 $
// $Source: P:/MWINDOWS/LIB/rcs/desktop.cpp $
// $Date: 1993/11/27 09:53:32 $
//

#include "desktop.h"
#include "global.h"
#include "message.h"
#include "viewlist.h"
#include "shape.h"

Desktop::Desktop (Rect *prect)
        :MultiView (prect, NULL, NULL, FALSE, FALSE)
{
    clientPort = new ViewPort (&clientRect, viewPort);
    draw ();
}

//
// quit generates "quit" message and quits the message queue.
//
BOOL Desktop::quit (int errorlevel)
{
    if (close() == FALSE) return (FALSE);
    msgqueue->put (this, NULL, NULL, MSG_Quit, NULL, NULL, errorlevel);
    return (TRUE);
}

BOOL Desktop::isEmpty ()
{
    return (subviewList->isEmpty ());
}

//
// you can change this function to "draw" your desktop!!!
//
void Desktop::selfDraw (Port *port, Rect *area)
{
    port->setPenColor (PPC_Gray);
    port->draw (&FilledRectangle (area));
}

⌨️ 快捷键说明

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