码迷,mamicode.com
首页 >  
搜索关键字:字符对齐    ( 12个结果
C/C++ 结构体通过指针移位取值
代码示例:int_tmain(intargc,_TCHAR*argv[]) { #pragmapack(1) typedefstruct{ inta; charx; inty; charz[6]; }AAA; printf("%d\n",sizeof(AAA)); AAAa={1,‘a‘,2,"bcdef"}; AAA*pa=&a; int*test1=(int*)(void*)pa; char*test2=(char*)(void*)(test1+1); int*test3=(int*)(v..
分类:编程语言   时间:2014-10-10 15:15:24    阅读次数:165
DrawText
DrawText 函数功能:该函数在指定的矩形里写入格式化文本,根据指定的方法对文本格式化(扩展的制表符,字符对齐、折行等)。 函数原型:int DrawText(HDC hdc, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat.....
分类:其他好文   时间:2014-09-19 23:43:26    阅读次数:373
12条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!