游客已登陆 (0)未知
笔行证 257310
昵称 kuan 
笔贝 Score1
加为好友 发送短信
<< << 2008 八月 >> >>
12
3456789
10111213141516
17181920212223
24252627282930
31

访问计数:19051
本文:324 今天:1 本月 324

本地音乐播放器



 
       MFC 的通用类
2007-07-10 晴



MFC 的通用类
5.1 简单数据类

//**************点类CPoint************************
CPoint(int initX, int initY);
CPoint(POINT initPt);

Typedef struct tagPOINT
{
LONG x;
LONG y;
}POINT;

CPoint 类成员
void Offset(
int xOffset,
int yOffset
) throw( );
void Offset(
POINT point
) throw( );
void Offset(
SIZE size
) throw( );
还有就是重载方面的了.+= -= != ==


//**********矩形类CRect**********************
CRect(int l,int t,int r, int b);
CRect(const RECT& srcRect);

typedef struct Rect
{
LONG left;
LONG top;
LONG right;
LONG bottom;
}RECT;

//************尺寸类CSize*******************
CSize(int initCX, int initCY);
CSize(SIZE initSize);

typedef struct tagSIZE
{
LONG cx;
LONG cy;
}SIZE;


//************字符串类CString*******************
CString();
CString(const unsigned char *psz);
常用方法
Empty(); //强制使字符串的长度为0
GetAt(); //返回给定位置的字符
GetLength() //返回字符串的个数(不包括终止符)
SetAt(); //在给定位置设置一个字符.
# posted by kuan @ 2007-07-10 12:20:02 评论(0)
 








 
笔 名:
*
评 论:
最多1000字。当前字数:0
*
联系方式: