When creating a text box
hwnd = CreateWindowEx(0, \"EDIT\", [...])
How to set default, grey text on the background of that box, which disappear
After creating the edit control, send the EM_SETCUEBANNER message to it:
SendMessage(hwndEdit, EM_SETCUEBANNER, 0, (LPARAM)L"Default text");
Or use the Edit_SetCueBannerText macro:
Edit_SetCueBannerText(hwndEdit, L"Default text");
Either way, you also need to enable Visual Styles.