When creating a text box
hwnd = CreateWindowEx(0, "EDIT", [...])
How to set default, grey text on the background of that box, which disappears when providing some input? An example. I'm using codeblocks.
EDIT:
#include <commctrl.h>
[...]
HWND hwndEdit = CreateWindowEx(0, "EDIT", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER, 10, 110, 300, 20, hwnd, NULL, hThisInstance, NULL);
SendMessage(hwndEdit, EM_SETCUEBANNER, FALSE, (LPARAM) L"Default text");