亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? 復(fù)件 form.cpp

?? SimpleGraphicOperatingSystem 32位圖形化操作系統(tǒng) 多進(jìn)程 支持FAT32 詳見(jiàn)www.sgos.net.cn
?? CPP
字號(hào):
#include <OsDef.h>//WM_**
#include <System.h>
#include <Api.h>	//Sgos api

#define MID_SPACE 2



namespace System{

	class CloseButton: public Button{
		public:
			CloseButton( BaseWindow* parent, string text, int style ):
				Button( parent, text, style ){
			}
			virtual int OnMouseUp( int button, Point* p ){
				if( button == 1 ){
					Form* parent = (Form*)Parent();
					if( parent )
						delete parent;
				}
			}
			virtual int DrawLabel(int type){
			int w = BaseWindow::Width();
			int h = BaseWindow::Height();
			Bitmap::Line( bitmap, w/4, h/4, w*3/4, h*3/4, Bitmap::BLACK );
			Bitmap::Line( bitmap, w/4, h*3/4, w*3/4, h/4, Bitmap::BLACK );
			Label::DrawLabel(type);
		}
	};
	
	class MiniButton: public Button{
		public:
			MiniButton( BaseWindow* parent, string text, int style ):
				Button( parent, text, style ){
			}
			virtual int OnMouseUp( int button, Point* p ){
				if( button == 1 ){
					Form* parent = (Form*)Parent();
					if( parent )
						int w_ = parent->Width();
						int h_ = parent->Height();
						parent->Move(0,768-23,133,23);
				}
			}
			virtual int DrawLabel(int type){
			int w = BaseWindow::Width();
			int h = BaseWindow::Height();
			Bitmap::Line( bitmap, w/4, h*3/4, w*3/4, h*3/4, Bitmap::BLACK );
			Label::DrawLabel(type);

			}
	};






	
	class LargeButton: public Button{
		public:
			LargeButton( BaseWindow* parent, string text, int style ):
				Button( parent, text, style ){
			}
			virtual int OnMouseUp( int button, Point* p ){
				if( button == 1 ){
					Form* parent = (Form*)Parent();
					if( parent )
                MessageBox::Show( string("功能未實(shí)現(xiàn)"), string("Error") );
				}
			}
			virtual int DrawLabel(int type){
			int w = BaseWindow::Width();
			int h = BaseWindow::Height();
			Bitmap::Line( bitmap, w/4,   h/4,   w*3/4, h/4, Bitmap::BLACK );
			Bitmap::Line( bitmap, w/4,   h/4+1,   w*3/4, h/4+1, Bitmap::BLACK );
			Bitmap::Line( bitmap, w/4, h*3/4,   w*3/4, h*3/4,   Bitmap::BLACK );
			Bitmap::Line( bitmap, w/4,   h/4,   w/4,   h*3/4, Bitmap::BLACK );
			Bitmap::Line( bitmap, w*3/4, h/4,   w*3/4, h*3/4, Bitmap::BLACK );
			Label::DrawLabel(type);

			}
	};








	int Form::OnInitialize(){
	}


	
	Form::Form( BaseWindow* parent, string text, int style )
		:BaseWindow( parent, text, style )
	{
		int x=50, y=50, w = 200, h = 150;
		strFormName = text;
		type = TypeForm;
		status = FormRunning;
		bMouseCatched=false;
        frameColor1 = Bitmap::MakeColor(200,200,200);
		frameColor2 = Bitmap::MakeColor(200,200,200);
		titleColor1 = Bitmap::MakeColor(41,41,41);
		client = new BaseWindow( (BaseWindow*)this, string("client"), 0 );
        buttonClose = new CloseButton( (BaseWindow*)this, string(" "), 0 );
		buttonClose->Move( x-MID_SPACE+3, y-MID_SPACE+3,13,13);
        buttonMini = new MiniButton( (BaseWindow*)this, string(" "), 0 );
		buttonMini->Move( x-MID_SPACE+3, y-MID_SPACE+3,13,13);
		buttonLarge = new LargeButton( (BaseWindow*)this, string(" "), 0 );
		buttonLarge->Move( x-MID_SPACE+3, y-MID_SPACE+3,13,13);
		buttonClose->Show();
		buttonMini->Show();
		buttonLarge->Show();
		Move( x-MID_SPACE, y-MID_SPACE);
   		client->Show();
        client->BaseWindow::MoveToTop(true);
		Activate();
		OnInitialize();
	}



	
	Form::~Form()
	{
		delete buttonClose;
		delete buttonMini;
		delete buttonLarge;
		delete client;
	}

	
	BaseWindow* Form::GetClient(){
		return client;
	}

	
	int Form::OnPaint(){
		DrawBackGround(1);
		DrawTitleBar(1);
		if( visible ){
			client->Refresh();
			buttonClose->Refresh();
			buttonMini->Refresh();
			buttonLarge->Refresh();
			Refresh();
		}
		BaseWindow::OnPaint();
	}

	
	int Form::OnActivate(bool active){
		if( active )
		{
			DrawBackGround(1);
			DrawTitleBar(1);
		}else{
			DrawBackGround(0);
			DrawTitleBar(0);
		}
		Refresh();
		return BaseWindow::OnActivate(active);
	}

	
	int Form::OnSize(int w, int h){
		client->Move( MID_SPACE, 21+MID_SPACE, w-MID_SPACE*2, h-MID_SPACE*2-21 );
		buttonClose->Move( w-MID_SPACE-buttonClose->Width(), MID_SPACE );
		buttonClose->Refresh();
		buttonMini->Move( w-MID_SPACE-buttonClose->Width()-30, MID_SPACE );
		buttonMini->Refresh();
		buttonLarge->Move( w-MID_SPACE-buttonClose->Width()-15, MID_SPACE );
		buttonLarge->Refresh();

		Bitmap::RectFill( bitmap, 0, 0, bitmap->Width-1-MID_SPACE, bitmap->Height-1-MID_SPACE,winStyle.active.backColor );
		Bitmap::RectFill( client->Bitmap(), 0, 0, client->Bitmap()->Width-1, client->Bitmap()->Height-1,winStyle.active.backColor );
		client->Refresh();
		return BaseWindow::OnSize(w,h);
	}

	
	int Form::OnLoad()
	{
        return BaseWindow::OnLoad();
	}

	
	int Form::SetFormSize( int w, int h )
	{
	    w = w+MID_SPACE*2;
	    h = h+MID_SPACE*2+ 22;
	    return BaseWindow::SetSize( w, h );
	}

	
	int Form::DrawTitleBar(int type){



                        int x,y,w,c;
                        x=MID_SPACE+3;
                        y=MID_SPACE+3;
                        w=bitmap->Width-x-1;
                        c=231;

			Bitmap::RectFill( bitmap, MID_SPACE, MID_SPACE, bitmap->Width-MID_SPACE-3, 22, Bitmap::MakeColor(c,c,c));


		switch(type){
		case 0:
			

			break;
		case 1:

Bitmap::DrawText(
				bitmap,
				strFormName.GetData(),
				strFormName.Length(),
				MID_SPACE-30+w/2-strFormName.Length()/2,
				MID_SPACE+5,
				FONT_MINI_SIZE,
				titleColor1,
				0 );
			break;
		}
		buttonClose->Refresh();
		buttonMini->Refresh();
		buttonLarge->Refresh();
	}

	
	int Form::DrawBackGround(int type){
		switch(type)
		{
			case 0:
				//上
				Bitmap::RectFill( bitmap, 0, 0, bitmap->Width-1, MID_SPACE-1,
					frameColor2 );
				//左
				Bitmap::RectFill( bitmap, 0, MID_SPACE, MID_SPACE-1, bitmap->Height-MID_SPACE-1,
					frameColor2 );
				//右
				Bitmap::RectFill( bitmap, bitmap->Width-MID_SPACE, MID_SPACE-1, bitmap->Width-1, bitmap->Height-MID_SPACE-1,
					frameColor2 );
				//下
				Bitmap::RectFill( bitmap, 0, bitmap->Height-MID_SPACE, bitmap->Width-1, bitmap->Height-1,
					frameColor2 );
				break;
			case 1:
				//上
				Bitmap::RectFill( bitmap, 0, 0, bitmap->Width-1, MID_SPACE-1,
					frameColor1 );
				//左
				Bitmap::RectFill( bitmap, 0, MID_SPACE, MID_SPACE-1, bitmap->Height-MID_SPACE-1,
					frameColor1 );
				//右
				Bitmap::RectFill( bitmap, bitmap->Width-MID_SPACE, MID_SPACE-1, bitmap->Width-1, bitmap->Height-MID_SPACE-1,
					frameColor1 );
				//下
				Bitmap::RectFill( bitmap, 0, bitmap->Height-MID_SPACE, bitmap->Width-1, bitmap->Height-1,
					frameColor1 );
				break;
		}
	}

	
	int Form::OnMessage( Message* msg )
	{
		switch(msg->message){
		}

		//基類
		BaseWindow::OnMessage(msg);
	}

	
	int Form::OnMouseDown( int button, Point* p ){
		if( button==1 && p->y < 21+MID_SPACE ){
			Point gM;
			Rect r;
			Mouse::GetMousePoint(&gM);	//we get the global mouse position.
			GetRect( r );
			oldMouseRelX = gM.x;
			oldMouseRelY = gM.y;
			oldWinX = r.left;
			oldWinY = r.top;
			bMouseCatched = true;
		}
		BaseWindow::OnMouseDown( button, p );
	}
	
	int Form::OnMouseUp( int button, Point* p ){
		bMouseCatched = false;
		BaseWindow::OnMouseUp( button, p );
	}
	
	int Form::OnMouseLeave( int button ){
		bMouseCatched = false;
		BaseWindow::OnMouseLeave( button );
	}
	
	int Form::OnMouseMove( Point* p ){
		if( bMouseCatched ){
			short x,y;
			Point gM;
			Mouse::GetMousePoint(&gM);	//we get the global mouse position.
			x = gM.x-oldMouseRelX;
			y = gM.y-oldMouseRelY;
			Move( x+oldWinX, y+oldWinY, 0, 0 );
			BaseWindow::OnMouseMove( p );
		}
	}

	
	int Form::OnDispose(int& cancel){
		BaseWindow::OnDispose(cancel);
	}
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜伦理影院| 欧美日韩卡一卡二| 欧美亚一区二区| 日韩区在线观看| 亚洲欧洲日产国产综合网| 日韩电影一区二区三区四区| 99热在这里有精品免费| 久久综合久久综合亚洲| 青青草视频一区| 欧美色视频一区| 日韩久久一区二区| 成人97人人超碰人人99| 久久天天做天天爱综合色| 爽好多水快深点欧美视频| 91麻豆swag| 国产精品毛片a∨一区二区三区| 久久福利视频一区二区| 欧美日韩日日骚| 亚洲精品乱码久久久久久黑人| 国产a精品视频| 国产日韩精品一区二区三区在线| 久久精品国内一区二区三区| 欧美军同video69gay| 亚洲五月六月丁香激情| 欧美亚洲一区三区| 亚洲乱码国产乱码精品精可以看| 波多野洁衣一区| 中文字幕精品—区二区四季| 国产成人精品免费在线| 欧美国产丝袜视频| 成人黄色网址在线观看| 国产精品麻豆一区二区| 91亚洲精品久久久蜜桃| 最新中文字幕一区二区三区 | 一区二区不卡在线播放 | 亚洲女同女同女同女同女同69| 国产精品原创巨作av| 久久久99精品久久| 成人三级伦理片| 综合中文字幕亚洲| 日本精品一区二区三区高清| 一区二区不卡在线播放 | 777色狠狠一区二区三区| 午夜一区二区三区在线观看| 欧美精选一区二区| 久久精品国产77777蜜臀| 精品国产凹凸成av人导航| 国内精品伊人久久久久av影院 | 国产精品2024| 国产精品成人在线观看 | 盗摄精品av一区二区三区| 国产欧美久久久精品影院| 欧美色爱综合网| 香蕉成人啪国产精品视频综合网 | 精品成人一区二区| 成人免费看黄yyy456| 亚洲精品视频在线观看免费| 欧美另类videos死尸| 久久99国产精品麻豆| 中文字幕欧美日韩一区| 欧美做爰猛烈大尺度电影无法无天| 亚洲一区二区精品久久av| 欧美videos大乳护士334| 成人激情综合网站| 午夜精品久久久久久久久| 久久亚洲免费视频| 欧洲av在线精品| 国产一区二区不卡| 一区二区三区**美女毛片| 精品日韩成人av| 91成人网在线| 国产在线观看免费一区| 一区二区三区高清不卡| 精品国产伦一区二区三区观看方式| 99热精品一区二区| 日本女优在线视频一区二区| 亚洲视频综合在线| 日韩视频123| 在线观看成人免费视频| 国产传媒一区在线| 日av在线不卡| 亚洲午夜精品网| 亚洲国产岛国毛片在线| 欧美mv日韩mv亚洲| 欧美日韩国产色站一区二区三区| 国产98色在线|日韩| 免费高清成人在线| 亚洲综合免费观看高清完整版在线 | 精品国免费一区二区三区| 一本色道a无线码一区v| 国产成人精品三级麻豆| 另类调教123区| 午夜视频在线观看一区二区三区| 国产精品成人一区二区艾草| 久久久精品2019中文字幕之3| 9191成人精品久久| 欧美熟乱第一页| 91麻豆免费视频| 懂色av一区二区三区蜜臀| 九色综合狠狠综合久久| 青青草97国产精品免费观看 | 一卡二卡欧美日韩| 国产精品每日更新| 欧美韩国日本综合| 日本一区二区成人| 中文字幕免费一区| 国产精品丝袜久久久久久app| 中文字幕中文乱码欧美一区二区| 久久综合色8888| 精品国产123| 久久久亚洲精品一区二区三区 | 成人欧美一区二区三区黑人麻豆 | 天堂午夜影视日韩欧美一区二区| 一区二区三区视频在线观看| 国产精品福利影院| 成人免费一区二区三区在线观看 | 久久电影网电视剧免费观看| 六月婷婷色综合| 精品无码三级在线观看视频| 黑人巨大精品欧美黑白配亚洲| 免费在线观看精品| 紧缚奴在线一区二区三区| 精品午夜久久福利影院| 国产精品中文字幕欧美| 成人白浆超碰人人人人| 色综合久久久久久久| 在线观看一区日韩| 91精品国产综合久久香蕉的特点| 欧美一区二区三区免费大片| 欧美一区二区在线视频| 精品国产91乱码一区二区三区| 国产亚洲综合av| 亚洲女厕所小便bbb| 午夜伊人狠狠久久| 国产美女精品一区二区三区| 成人精品视频一区二区三区| 一本色道亚洲精品aⅴ| 91精品国产综合久久香蕉麻豆| 久久麻豆一区二区| 一区二区三区在线视频免费 | 亚洲一区在线观看网站| 青青青伊人色综合久久| 国产成人免费在线视频| 色综合中文字幕| 日韩免费观看高清完整版| 欧美国产禁国产网站cc| 亚洲电影中文字幕在线观看| 韩国毛片一区二区三区| 91免费国产在线| 日韩美一区二区三区| 亚洲婷婷在线视频| 美女视频网站黄色亚洲| 99精品视频免费在线观看| 欧美浪妇xxxx高跟鞋交| 国产精品欧美一区二区三区| 亚洲大片一区二区三区| 成人午夜免费电影| 欧美一区二区三区免费视频| 国产精品国产精品国产专区不蜜 | 99精品热视频| 精品成人一区二区三区| 亚洲一区二区三区小说| 丁香激情综合五月| 精品国产乱码久久久久久图片| 国产精品久久久久久久久图文区| 国模套图日韩精品一区二区 | 日韩小视频在线观看专区| 国产精品久久看| 精品亚洲国产成人av制服丝袜| 91视频免费观看| 久久久美女艺术照精彩视频福利播放 | 亚洲成在人线在线播放| 粉嫩aⅴ一区二区三区四区| 日韩欧美一区中文| 亚洲综合成人在线视频| 成人av网站在线观看免费| 日韩欧美亚洲国产另类| 亚洲大片在线观看| 色诱视频网站一区| 国产精品美女久久久久久久久久久| 久久精品国产精品青草| 91 com成人网| 亚洲一区在线播放| 色成年激情久久综合| 国产精品理论片在线观看| 国产麻豆成人精品| 精品日韩成人av| 日本不卡一区二区三区| 欧美日韩另类国产亚洲欧美一级| 亚洲精品午夜久久久| 91视频在线观看免费| 自拍偷拍国产精品| 成人天堂资源www在线| 国产日韩欧美在线一区| 国产一区二区中文字幕| 精品日韩99亚洲| 精品中文av资源站在线观看| 欧美一区三区四区| 免费人成在线不卡| 91精品久久久久久久久99蜜臂|