Red de conocimiento informático - Problemas con los teléfonos móviles - Código fuente de control de interfaz Vc

Código fuente de control de interfaz Vc

Las únicas API similares son SetWindowText, etc., y SetDlgItemText y SetDlgItemInt en realidad se llaman SetWindowText.

Llamada a SetWindowText

SendMessage(hWnd, WM_SETTEXT, 0, text);

Código fuente de SetWindowText (de reactos)

WINAPI booleano

SetWindowTextW(HWND hWnd,

LPCWSTR lpString)

{

PWND pwnd

pwnd = validar hWnd (hWnd);

IF(pwnd)

{

if (!TestWindowProcess(pwnd))

{

/*No enviar mensajes WM_GETTEXT a otros procesos*/

return (DefWindowProcW(hWnd, WM_SETTEXT, 0, (LPARAM)lpString) gt; = 0

); }

return (SendMessageW(hWnd, WM_SETTEXT, 0, (LPARAM)lpString) gt; = 0

}

Return FALSE

);

}