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

📄 select.c

📁 基于东南大学开发的SEP3203的ARM7中的所有驱动
💻 C
📖 第 1 页 / 共 4 页
字号:
/**********************************************************
*
*Copyright ? 2001 National ASIC Center, All right Reserved
*
* FILE NAME:		select.c	//button.c   //modified by xuanhui 2002/3/20
* PROGRAMMER:		ZengXianWei
* Date of Creation:	2001/3/2
* 
*DESCRIPTION: 		select.c and select.h accomodate several functions which will be used in creating a select contral
*
*NOTE:			 	every function in this file can only be directly quoted by CreatWindow(),DestroyWindow(),EnableWindow(),DefWindowProc(),
*					WindowCaption(),WindowInformation(),etc.Application programmer must use these functions to call the following function 
*                   indirectly.
*
*FUNCTIONS LIST:
*the following define eight member function.
*STATUS (*Btn_creat)(char *caption,U32 style,U16 x,U16 y,U16 width,U16 hight,U32 parent,U32 menu,void  **ctrl_str,void *exdata);
*		_caption is the string of the button caption ,it will be divided into two part by '\' .
*				at the front of it is the caption of the button,and the back of it is the caption of the tag
*		_style specified the style of the select control team which will be draw,the low 16 bit will be used 
*				in select control,the high 16 bits was used by system
*		_x specified the top_x of the frame of the select control team .
*		_y specified the top_y of the frame of the select control team.
*		_width specified the width of the frame of the select control team.
*		_hight specified the hight of the frame of the select control team.
*		_parent is the parent wndid of the select control team.
*		_menu specified the rownumber and the colnumber of the radiobox or checkbox which will be draw on the
*				frame of the select control team,the high 16 bits specified the colnumber the team, and the
*		 		low 16 bits specified the rownumber of the select control.
*		_ctrl_str is a export parameter,it point to the ctrl_structure ,it was defined in select.h
*		_exdata specified the type,state,caption of each select box.
*STATUS (*Btn_destroy)(void *ctrl_str);
*		_ctrl_str is the only inport parameter of this function. 
*STATUS (*Btn_msg_trans)(void *ctrl_str, U16 msg_type, U32 areaId, P_U16 data, U32  size, PMSG trans_msg);
*		_ctrl_str is the inport parameter of the button.
*		_msg_type is the message type.
*		_areaid.
*		_size.
*		_trans_msg is a export parameter in this function.
*STATUS (*Btn_msg_proc)(U16 msg_type,U32 areaid,void data,U32 size,void *reserved);
*		_msg_type is a inport parameter of this function,
*		_areaid.
*		_size.
*		_reserved is a reserved parameter maybe will be used later.
*STATUS (*Btn_repaint)(vid *ctrl_str,U32 Btn_lparam);
*STATUS (*Btn_enable)(void *ctrl_str,U32 Btn_indes,U32 Btn_lparam);
*STATUS (*Btn_caption)(void *ctrl_str,char *caption,void *Btn_exdata,U32 Btn_lparam);	
*GLOBAL VARS LIST:
*
*********************************************************
*MODIFICATION HISTORY
*
*
* 2001/3/2	by ZengXianWei		Description of the changes mode to the file
*							    changes should be listed in the reverse order
*							
***********************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "asixwin.h"
#include "asixapp.h"

//#include <hc.h>

#include "disp.h"

//#include "bitmap.h"

#include "select.h"

//this function will helps to draw the frame of the selectbox
void draw3dframe(U16 x,U16 y,U16 width,U16 hight,U32 enable,char *string )
{
	U32 pGC;

	pGC = GetGC( );

	if( enable&SLS_ENABLE )
	{
		//modified by xuanhui 2002/3/20
		//DrawRec( pGC,  GPC_LIGHTGREY,x+1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawRec( pGC,  GPC_BLACK,x,y, x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//Disp16StringGrey( GPC_BLACK,string,(U16)(x+8),(U16)(y-8) );
		if( string != NULL )	//modified by xuanhui 2002/4/4
		{
			Disp16StringGrey( ColorTheme.form_text,string,(U16)(x+SL_FRAME_TEXT_X_INTERVAL),y );

			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+1),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+SL_FRAME_TEXT_X_INTERVAL-2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+SL_FRAME_TEXT_X_INTERVAL+(U16)strlen(string)*ENGLISH_CHAR_WIDTH+2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+width-2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+1),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+1),(U16)(y+hight-2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+1),(U16)(y+hight-2),(U16)(x+width-2),(U16)(y+hight-2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+width-2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+width-2),(U16)(y+hight-2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);

			DrawLine(pGC, ColorTheme.form_board,x,(U16)(y+CHINESE_CHAR_HEIGHT/2),(U16)(x+SL_FRAME_TEXT_X_INTERVAL-2),(U16)(y+CHINESE_CHAR_HEIGHT/2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.form_board,(U16)(x+SL_FRAME_TEXT_X_INTERVAL+(U16)strlen(string)*ENGLISH_CHAR_WIDTH+2),(U16)(y+CHINESE_CHAR_HEIGHT/2),(U16)(x+width-1),(U16)(y+CHINESE_CHAR_HEIGHT/2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.form_board,x,(U16)(y+CHINESE_CHAR_HEIGHT/2),x,(U16)(y+hight-1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.form_board,x,(U16)(y+hight-1),(U16)(x+width-1),(U16)(y+hight-1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.form_board,(U16)(x+width-1),(U16)(y+CHINESE_CHAR_HEIGHT/2),(U16)(x+width-1),(U16)(y+hight-1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
		}
		else
		{
			DrawRec( pGC,  ColorTheme.obj3D_shadow,x+1,y+1,x+width-2,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
			DrawRec( pGC,  ColorTheme.form_board,x,y, x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		}
	}else{
		//modified by xuanhui 2002/3/20
		//DrawRec( pGC,  GPC_LIGHTGREY,x+1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawRec( pGC,  GPC_DARKGREY,x,y, x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//Disp16StringGrey( GPC_DARKGREY,string,(U16)(x+8),(U16)(y-8) );
		if( string != NULL )	//modified by xuanhui 2002/4/4
		{
			Disp16StringGrey( ColorTheme.form_disablecolor,string,(U16)(x+SL_FRAME_TEXT_X_INTERVAL),y );
			DrawLine(pGC, ColorTheme.obj3D,(U16)(x+1),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+SL_FRAME_TEXT_X_INTERVAL-2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D,(U16)(x+SL_FRAME_TEXT_X_INTERVAL+(U16)strlen(string)*ENGLISH_CHAR_WIDTH+2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+width-2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D,(U16)(x+1),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+1),(U16)(y+hight-2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D,(U16)(x+1),(U16)(y+hight-2),(U16)(x+width-2),(U16)(y+hight-2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D,(U16)(x+width-2),(U16)(y+CHINESE_CHAR_HEIGHT/2+1),(U16)(x+width-2),(U16)(y+hight-2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);

			DrawLine(pGC, ColorTheme.obj3D_shadow,x,(U16)(y+CHINESE_CHAR_HEIGHT/2),(U16)(x+SL_FRAME_TEXT_X_INTERVAL-2),(U16)(y+CHINESE_CHAR_HEIGHT/2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+SL_FRAME_TEXT_X_INTERVAL+(U16)strlen(string)*ENGLISH_CHAR_WIDTH+2),(U16)(y+CHINESE_CHAR_HEIGHT/2),(U16)(x+width-1),(U16)(y+CHINESE_CHAR_HEIGHT/2),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,x,(U16)(y+CHINESE_CHAR_HEIGHT/2),x,(U16)(y+hight-1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,x,(U16)(y+hight-1),(U16)(x+width-1),(U16)(y+hight-1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
			DrawLine(pGC, ColorTheme.obj3D_shadow,(U16)(x+width-1),(U16)(y+CHINESE_CHAR_HEIGHT/2),(U16)(x+width-1),(U16)(y+hight-1),GPC_SOLID_LINE,GPC_REPLACE_STYLE);
		}
		else
		{
			DrawRec( pGC,  ColorTheme.obj3D_shadow,x+1,y+1,x+width-2,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
			DrawRec( pGC,  ColorTheme.form_board,x,y, x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		}
	}
}

//this function will helps to draw the checkbox
void draw3dcheckbox(U16 x,U16 y,U16 width,U16 hight,U32 enable,U8 state )
{
	//DrawRec( pGC,  GPC_BLACK,x,y,x+width,y+hight,0,GPC_REPLACE_STYLE );
	//DrawRec( pGC,  GPC_DARKGREY,x+1,y+1,x+width-1,y+hight-1,0,GPC_REPLACE_STYLE );
	//DrawRec( pGC,  GPC_DARKGREY,x+2,y+2,x+width-2,y+hight-2, 0,GPC_REPLACE_STYLE );
	//DrawLine( pGC, GPC_BLACK,x+1,y+1,x+width-1,y+1,0,GPC_REPLACE_STYLE );
	//DrawLine( pGC, GPC_BLACK,x+1,y+1,x+1,y+hight-1,0,GPC_REPLACE_STYLE );
	U32 pGC;
	
	//modified by xuanhui 2002/4/3
	//modified by xuanhui 2002/3/28
	//if ( width <= (U16)(SL_DISTANCE+4+ENGLISH_CHAR_WIDTH) || hight <= (U16)(SL_FRAME_TEXT_HEIGHT+ CHINESE_CHAR_HEIGHT+2) )
	//	return;

	pGC = GetGC( );

	if( enable == TRUE )
	{
		//modified by xuanhui 2002/3/20
		//DrawRec( pGC,  GPC_BLACK,x,y,x+width,y+hight,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawRec( pGC,  GPC_DARKGREY,x+1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawRec( pGC,  GPC_DARKGREY,x+2,y+2,x+width-2,y+hight-2, GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawLine( pGC, GPC_BLACK,x+1,y+1,x+width-1,y+1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawLine( pGC, GPC_BLACK,x+1,y+1,x+1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//ClearRec( pGC, GPC_WHITE,x+2,y+2,width-4,hight-4,GPC_REPLACE_STYLE );
		//modified by xuanhui 2002/4/4
/*		DrawRec( pGC,  ColorTheme.form_board,x,y,x+width,y+hight,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawRec( pGC,  ColorTheme.obj3D_shadow,x+1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawRec( pGC,  ColorTheme.obj3D_shadow,x+2,y+2,x+width-2,y+hight-2, GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.form_line,x+1,y+1,x+width-1,y+1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.form_line,x+1,y+1,x+1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		ClearRec( pGC, ColorTheme.form_backcolor,x+2,y+2,width-4,hight-4,GPC_REPLACE_STYLE );
*/		//外一层上亮灰
		DrawLine( pGC, ColorTheme.obj3D,x,y,x+width-1,y,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D,x,y,x,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//外一层下白
		DrawLine( pGC, ColorTheme.obj3D_highlight,x+width-1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D_highlight,x+1,y+hight-1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//外二层上黑
		DrawLine( pGC, ColorTheme.form_board,x+1,y+1,x+width-2,y+1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.form_board,x+1,y+1,x+1,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//外二层下亮灰
		DrawLine( pGC, ColorTheme.obj3D,x+width-2,y+2,x+width-2,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D,x+2,y+hight-2,x+width-2,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );

		ClearRec( pGC, ColorTheme.form_backcolor,x+3,y+3,width-4,hight-4,GPC_REPLACE_STYLE );

		if( state == SL_CHECKED )
		{ 	
			//modified by xuanhui 2002/3/20
			//SetDotWidth( pGC,3,0 );    /* 点宽现无法使用,只能用点宽为1的线 */  
			//DrawLine( pGC, GPC_BLACK,x+3,y+3,x+width-3,y+hight-3,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
			//DrawLine( pGC, GPC_BLACK,x+3,y+hight-3,x+width-3,y+3,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
			DrawLine( pGC, ColorTheme.form_line,x+3,y+3,x+width-3,y+hight-3,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
			DrawLine( pGC, ColorTheme.form_line,x+3,y+hight-3,x+width-3,y+3,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
			//SetDotWidth( pGC, 1,0 );		//modified by xuanhui 2002/3/20
		}
	}else{
		//modified by xuanhui 2002/3/20
		//DrawRec( pGC,  GPC_DARKGREY,x,y,x+width,y+hight,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawRec( pGC,  GPC_LIGHTGREY,x+1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawRec( pGC,  GPC_LIGHTGREY,x+2,y+2,x+width-2,y+hight-2, GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawLine( pGC, GPC_DARKGREY,x+1,y+1,x+width-1,y+1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//DrawLine( pGC, GPC_DARKGREY,x+1,y+1,x+1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//ClearRec( pGC, GPC_LIGHTGREY,x+2,y+2,width-4,hight-4,GPC_REPLACE_STYLE );
		//modified by xuanhui 2002/4/3
/*		DrawRec( pGC,  ColorTheme.form_disablecolor ,x,y,x+width,y+hight,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawRec( pGC,  ColorTheme.obj3D,x+1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawRec( pGC,  ColorTheme.obj3D,x+2,y+2,x+width-2,y+hight-2, GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.form_disablecolor ,x+1,y+1,x+width-1,y+1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.form_disablecolor ,x+1,y+1,x+1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		
		ClearRec( pGC, ColorTheme.form_disablecolor,x+2,y+2,width-4,hight-4,GPC_REPLACE_STYLE );
*/		//外一层上亮灰
		DrawLine( pGC, ColorTheme.obj3D,x,y,x+width-1,y,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D,x,y,x,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//外一层下白
		DrawLine( pGC, ColorTheme.obj3D_highlight,x+width-1,y+1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D_highlight,x+1,y+hight-1,x+width-1,y+hight-1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//外二层上深灰
		DrawLine( pGC, ColorTheme.obj3D_shadow,x+1,y+1,x+width-2,y+1,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D_shadow,x+1,y+1,x+1,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		//外二层下亮灰
		DrawLine( pGC, ColorTheme.obj3D,x+width-2,y+2,x+width-2,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );
		DrawLine( pGC, ColorTheme.obj3D,x+2,y+hight-2,x+width-2,y+hight-2,GPC_SOLID_LINE,GPC_REPLACE_STYLE );

		ClearRec( pGC, ColorTheme.form_backcolor,x+3,y+3,width-4,hight-4,GPC_REPLACE_STYLE );

	}
}

//this function will helps to draw the radiobox
void draw3dradiobox( U16 x,U16 y,U16 width,U16 hight,U32 enable,U8 state )
{
	//DrawCircle( pGC, GPC_DARKGREY, x+width/2,y+hight/2, hight/2,GPC_REPLACE_STYLE );
	//DrawCircle( pGC, GPC_BLACK,x+width/2,y+hight/2,hight/2-1,GPC_REPLACE_STYLE );
	//DrawCircle( pGC, GPC_LIGHTGREY,x+width/2,y+hight/2,hight/2-2,GPC_REPLACE_STYLE );
	//DrawArc( pGC, GPC_WHITE, x+1, y+hight/2, x+width-1, y+hight/2,GPC_REPLACE_STYLE );
	U32 pGC;

	pGC = GetGC( );

	if( enable == TRUE )
	{
		//modified by xuanhui 2002/3/20
		//DrawCircle( pGC, GPC_DARKGREY, x+width/2,y+hight/2, hight/2,GPC_REPLACE_STYLE );
		//DrawCircle( pGC, GPC_BLACK,x+width/2,y+hight/2,hight/2-1,GPC_REPLACE_STYLE );
		//DrawCircle( pGC, GPC_LIGHTGREY,x+width/2,y+hight/2,hight/2-2,GPC_REPLACE_STYLE );
		//modified by xuanhui 2002/4/4
		DrawCircle( pGC, ColorTheme.form_board , x+width/2,y+hight/2, hight/2,GPC_REPLACE_STYLE );
		DrawCircle( pGC, ColorTheme.obj3D_highlight,x+width/2,y+hight/2,hight/2-1,GPC_REPLACE_STYLE );
		DrawCircle( pGC, ColorTheme.obj3D_shadow,x+width/2,y+hight/2,hight/2-2,GPC_REPLACE_STYLE );
//		DrawArc( pGC, GPC_WHITE, x+1, y+hight/2, x+width-1, y+hight/2,GPC_REPLACE_STYLE );
		
		//SetDotWidth( pGC, 9,0 );	// 点宽现无法使用,只能用点宽为1的线 	//modified by xuanhui 2002/3/20
		//modified by xuanhui 2002/3/20
		//DrawDot( pGC, GPC_WHITE,x+width/2,y+hight/2,GPC_REPLACE_STYLE );
		//DrawDot( pGC, ColorTheme.form_backcolor,x+width/2,y+hight/2,GPC_REPLACE_STYLE );
		//SetDotWidth( pGC, 1,0 );		//modified by xuanhui 2002/3/20

		ClearRec( pGC, ColorTheme.form_backcolor,x+width/2-1,y+hight/2-1,3,3,GPC_REPLACE_STYLE );
		if( state == SL_CHECKED )
		{
			//modified by xuanhui 2002/3/20
			//SetDotWidth( pGC, 5,0 );	/* 点宽现无法使用,只能用点宽为1的线 */	
			//DrawDot( pGC, GPC_BLACK,x+width/2,y+hight/2,GPC_REPLACE_STYLE );
			//modified by xuanhui 2002/4/4
			//DrawDot( pGC, ColorTheme.form_frontcolor,x+width/2,y+hight/2,GPC_REPLACE_STYLE );
			InvRec(pGC, (U16)(x+width/2-1), (U16)(y+hight/2-1), 3, 3 );

			//SetDotWidth( pGC, 1,0 );	//modified by xuanhui 2002/3/20
		}
	}else{
		//modified by xuanhui 2002/3/20
		//DrawCircle( pGC, GPC_DARKGREY, x+width/2,y+hight/2, hight/2,GPC_REPLACE_STYLE );
		//DrawCircle( pGC, GPC_DARKGREY,x+width/2,y+hight/2,hight/2-1,GPC_REPLACE_STYLE );
		//DrawCircle( pGC, GPC_LIGHTGREY,x+width/2,y+hight/2,hight/2-2,GPC_REPLACE_STYLE );
		//modified by xuanhui 2002/4/4
		DrawCircle( pGC, ColorTheme.form_disablecolor, x+width/2,y+hight/2, hight/2,GPC_REPLACE_STYLE );
		DrawCircle( pGC, ColorTheme.obj3D_highlight,x+width/2,y+hight/2,hight/2-1,GPC_REPLACE_STYLE );
		DrawCircle( pGC, ColorTheme.obj3D ,x+width/2,y+hight/2,hight/2-2,GPC_REPLACE_STYLE );
//		DrawArc( pGC, GPC_WHITE, x+1, y+hight/2, x+width-1, y+hight/2,GPC_REPLACE_STYLE );
		

⌨️ 快捷键说明

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