z.B. so
case WM_CREATE: {
HWND hEdit = CreateWindow("EDIT", "",WS_CHILD|WS_VISIBLE|WS_HSCROLL|WS_VSCROLL|ES_MULTILINE|ES_WANTRETURN,CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,hwnd, (HMENU)IDC_MAIN_TEXT, GetModuleHandle(NULL), NULL);
SetWindowText(hEdit, "trallala");
SendDlgItemMessage(hwnd, IDC_MAIN_TEXT, WM_SETFONT,(WPARAM)GetStockObject(DEFAULT_GUI_FONT), MAKELPARAM(TRUE,0));
break; }
Alternativ kannst du auch analog zu dem SendDlgItemMessage(WM_SETFONT) ein SendDlgItemMessage(WM_SETTEXT) machen.