所以我有一个文本框,我想让它在到达边界时换行。另外,我是这个 w32 API 的新手。这是我的代码:
hEdit=CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD|WS_VISIBLE|
WS_BORDER, 10,
10, 160, 420, hwnd, (HMENU)IDC_MAIN_EDIT, GetModuleHandle(NULL),
NULL);
HGDIOBJ hfDefault=GetStockObject(DEFAULT_GUI_FONT);
SendMessage(hEdit, WM_SETFONT, (WPARAM)hfDefault,
MAKELPARAM(FALSE,0));
SendMessage(hEdit, WM_SETTEXT, NULL,
(LPARAM)"Insert text here...");