//获取字符串宽度
int GetStrWidth(Graphics *g,char *str,Font * pfont)
{
 RectF outrect;
 _bstr_t pstr = str;
 g->MeasureString(pstr,pstr.length(),g_pDefaultFont,RectF(0,0,0,0),&outrect);
 return outrect.Width;
}
	
posted on 2007-11-05 17:10 
我风 阅读(3588) 
评论(0)  编辑 收藏 引用