【发布时间】:2012-08-31 19:09:35
【问题描述】:
我用 C++ (Win32) 制作了一个文本框 现在我想改变文本框的形式和字体,因为它看起来很丑 我是怎么做到的?
这就是我创建文本框的方式
HWND WindowManager::textbox(int width, int height, int xPos, int yPos, LPCSTR content, bool edit_able)
{
int type = (edit_able) ? (WS_CHILD|WS_VISIBLE|ES_AUTOHSCROLL) : (WS_CHILD|WS_VISIBLE|WS_HSCROLL|ES_AUTOHSCROLL);
return CreateWindowEx(
WS_EX_CLIENTEDGE,
"EDIT",
content,
type,
xPos,
yPos,
width,
height,
window,
(HMENU)50,
GetModuleHandle(NULL),
NULL
);
}
【问题讨论】:
-
我投票决定关闭该问题,但实际上它没有明确的答案。但是这个可以:stackoverflow.com/questions/1955806/…