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

📄 guicontrol.h

📁 M3355的源代码
💻 H
字号:
/**************************GUIControl.h*********************************
*
*  Copyright (C) 2003 by ALi Corporation.  All Rights Reserved.
*
*  File:  GUIControl.h
*
*  Contents:
*  	To draw GUI Control -- Interface
* 
*  History:
*  Date		By       				Reason		Ver.
*  ====================================
*  2003/07	Gordon J.H. CHEN  		Create    		v1.0
*
***********************************************************************/


#ifndef __GUICONTROL_H__
#define __GUICONTROL_H__


#include <comsub.h>
#include <gui.h>
#include <ui.h>
#include <nv.h>


/**********************************************************************/
// begin of common things -->

#define UNICODE_STRING TRUE
#define NORMAL_STRING  FALSE

// I modified rect meaning as 0x0000: the highest 4 bits stand for no border or else. the lowest 12 bits stand for real position.
// Temporarily, It should be no problem, for dc at most (608, 416), but 2^12=4096, that is enough.
#define RECTBORDER_NOLEFT   0x1000
#define RECTBORDER_NOTOP    0x2000
#define RECTBORDER_NORIGHT  0x4000
#define RECTBORDER_NOBOT    0x8000

//#define CL_TRANSPARENT 0x02fe02fe //=RGBF( 0xfe, 0x02, 0xfe, CRF_TRANS )	//255: transparent color make logo etc visible
#define CL_TRANSPARENT  RGBF(255,0,255,CRF_TRANS)//0x01ffffff //=RGBF( 0xff, 0xff, 0xff, CRF_MIX )		//240: transparent set to 240(background color index)
#define CL_BKNOCARE 	0x00010101		//bkNoCare color make no change to background

// <-- end of common things


/**********************************************************************/
// Function Interface between GUI and other modules

void GUI_CreateButtonControl(HDC hdc, RECT *lpRect, COLORREF clBk, COLORREF clTopEdge, COLORREF clBotEdge, COLORREF clText, BYTE *sCaption, BOOL bUniNorm,  UINT iAlign, int iSpace); //Create button control using ordinary dc
void GUI_CreateBitmapControl(HDC hdc, RECT *lpRect, COLORREF clBk, COLORREF clTopEdge, COLORREF clBotEdge, UINT iBitmapID, int iLSpace, int iTSpace);//Create bitmap control using ordinary dc
void GUI_CreateLeftMidRightBitmap(HDC hdc, RECT *lpRect, UINT iLeftTopBmpID, UINT iMiddleBmpID, UINT iRightBotBmpID, BOOL isLeftMidRight);//Create composed bitmap control using ordinary dc


#endif //__GUICONTROL_H__

⌨️ 快捷键说明

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