Explicacion:
Simplemente cambia texto de la barra del título.
Permite hacer la conversión a ansi y unicode.
Código:
SetWindowTextA(hwnd, valor.c_str());
//or with UNICODE undefined:
SetWindowText(hwnd, valor.c_str());
//or with UNICODE undefined:
SetWindowText(hwnd, valor.c_str());