何问起C++教程 - Windows编程 - Win32编程
Win32在窗体中添加文本标签的代码
//HWND m_hwnd = CreateWindowEx  

HWND m_hovertreeStatic1;
m_hovertreeStatic1 = CreateWindow(L"static", TEXT("何问起"), WS_CHILD | WS_VISIBLE | SS_RIGHT, 10, 40, 90, 20, m_hwnd,
(HMENU)1, hInstance, NULL);
static表示创建的是标签,"何问起"是标签的内容,10, 40, 90, 20是标签的位置和长宽
收藏 列表

评论: