状态栏问题
代码如下:
int pInt[] = { 150, -1 };
// 分栏
::SendMessage(hWndStatus, SB_SETPARTS, 2, (LPARAM)pInt);
// 设置各栏的文本
::SendMessage(hWndStatus, SB_SETTEXT, 0, (LPARAM)" Windows");
问题就是我要在状态栏显示" Windows"字符串,但是显示的是乱码?
我用的是UNICODE字符,应该(LPARAM)" Windows"这里转换出问题了!