EM_SETCUEBANNER
Sets the textual cue, or tip, that is displayed by the edit control to prompt the user for information.
[*:2u85gcfu]You cannot set a cue banner on a multiline edit control or on a rich edit control.
[*:2u85gcfu]The cue banners don't work when the Asian language pack is installed on XP (the "Install files for East Asian languages" option). See <!-- m -->http://blogs.msdn.co... ... 38735.aspx<!-- m --> . This issue is fixed on Vista.
[*:2u85gcfu]wParam TRUE - only appears to work on Vista. Under XP the cue text always disappears when the control gets focus regardless of this parameter.
Gui, Margin, 20, 20 Gui, Font, s10 Bold Gui, Add, Text, , Name Gui, Font, Normal Gui, Add, Edit, xm y+10 w150 hwndHED1 SetEditCueBanner(HED1, "First") Gui, Add, Edit, x+10 yp wp hwndHED2 SetEditCueBanner(HED2, "Last") Gui, Show, , EM_SETCUEBANNER Return GuiClose: ExitApp SetEditCueBanner(HWND, Cue) { ; requires AHL_L Static EM_SETCUEBANNER := (0x1500 + 1) Return DllCall("User32.dll\SendMessageW", "Ptr", HWND, "Uint", EM_SETCUEBANNER, "Ptr", True, "WStr", Cue) }If the function cannot be used because of the above mentioned limitations you may try Placeholder()