2009年11月13日

利用awt与swing进行桌面编程(1)

摘要: 一.awt包中常用控件类1.标签类LabelLabel(String label,int align) 2.文本框类TextFieldTextField(String text,int cols)3.复选框Checkbox和单选按钮CheckboxGroupCheckbox(String label,boolean state)//state为true时表示选中,反之表示未选中 4.选择框Choice5.文本域类TextArea6.按钮类Button二.事件处理1.事件类Event常见的事件类型包括ActionEvent,ItemEvent,KeyEvent,MouseEvent2.在java 阅读全文

posted @ 2009-11-13 22:48 karying 阅读(237) 评论(0) 推荐(0)

常用的用来绘制图形的win32GDI函数

摘要: 一.LineTo 画直线BOOL LineTo( HDC hdc, // device context handle int nXEnd, // x-coordinate of ending point int nYEnd // y-coordinate of ending point); 二.使用Polyline和Polylineto 画一系列相连的直线PolyPolyline 画多组相连的线Arc 画椭圆线PolyBesier 和PolyBesierTo 画贝赛尔样条三.Rectangle 画矩形BOOL Rectangle( HDC hdc, // handle to DC int nL 阅读全文

posted @ 2009-11-13 21:55 karying 阅读(704) 评论(0) 推荐(0)

导航