会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
90%
sqmw
The awakening is always delayed, there seems to be some fog
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
2022年7月26日
wchar_t|WCHAT宽字符的打印
摘要: wprintf():对汉字的支持十分欠缺 WriteConsole():支持很完善 WriteConsole()的使用:
阅读全文
posted @ 2022-07-26 23:45 sqmw
阅读(151)
评论(0)
推荐(0)
编辑
win32api中的L和T,TEXT,_TEXT,__TEXT或__T
摘要: 宏 说明 前置 Unicode字符串中每个字符占16位(两个字节),而在ASNI中每个字符占用一个字节。 L作用 Unicode编码的标记,告诉编译器该字符串应该作为Unicode来编译,它用来将ASNI转换为Unicode。 Text() 我们不知道应该是怎么编码,交给宏处理,如果定义了UNICO
阅读全文
posted @ 2022-07-26 23:04 sqmw
阅读(115)
评论(0)
推荐(0)
编辑
Win32关键字(你学废了吗?)
摘要: 参数 说明 LPARAM win16历史遗留 其实就是 long WPARAM win16历史遗留 其实就是 WORD(UINT) LRESULT unsigned long (32-bit value returned from a window procedure or callback fun
阅读全文
posted @ 2022-07-26 23:01 sqmw
阅读(36)
评论(0)
推荐(0)
编辑
“const char*”类型的值不能用于初始化“char”类型的实体 的多种解决方法总结
摘要: 链接很长
阅读全文
posted @ 2022-07-26 20:35 sqmw
阅读(35)
评论(0)
推荐(0)
编辑
CreateWindow()
摘要: CreateWindow()参数说明 HWND WINAPI CreateWindow( _In_opt_ LPCTSTRlpClassName, // 窗口类名称 _In_opt_ LPCTSTRlpWindowName, // 窗口标题 _In_ DWORD dwStyle, // 窗口风格,或
阅读全文
posted @ 2022-07-26 20:32 sqmw
阅读(72)
评论(0)
推荐(0)
编辑
WNDCLASS说明
摘要: typedef struct tagWNDCLASSW { UINT style; //窗口类的风格(CS_XXX ) WNDPROC lpfnWndProc; //窗口处理函数 int cbClsExtra; //窗口类的附加数据的buff的大小(Cls:class,b:buff) int cbW
阅读全文
posted @ 2022-07-26 19:27 sqmw
阅读(87)
评论(0)
推荐(0)
编辑
Win32关键字全称或源头
摘要: LPSTR :char*
阅读全文
posted @ 2022-07-26 18:28 sqmw
阅读(13)
评论(0)
推荐(0)
编辑
1.Win32创建窗口过程
摘要: 定义WinMain函数 定义窗口处理函数(自定义,处理消息) 注册窗口类(向操作系统写入一些数据) 创建窗口(在内存里面创建窗口) 显示窗口(绘制窗口图像) 消息循环(获取、翻译、派发消息) 消息处理
阅读全文
posted @ 2022-07-26 17:20 sqmw
阅读(60)
评论(0)
推荐(0)
编辑
公告