Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpmcaa!marco From: marco@hpmcaa.mcm.hp.com (Marco Dalla-Gasperina) Newsgroups: comp.windows.ms Subject: Re: Hilighting Text in edit fields Message-ID: <6970009@hpmcaa.mcm.hp.com> Date: 5 Jul 89 16:22:45 GMT References: <12265@polyslo.CalPoly.EDU> Organization: HP McMinville Division Lines: 17 >Just wondering. Does anyone know how to highlight text >in edit fields, i.e. when the focus is set to it? > Thanks, Paul. > >-- >Paul C. David pdavid@polyslo.CalPoly.EDU >California Polytechic State University, San Luis Obispo >Home of the six-year or 60,000 mile undergraduate degree >---------- hWnd = GetDlgItem(hDlg,nDlgItemNumber); lResult = SendMessage(hWnd,EM_SETSEL,0,MAKELONG(0,32767)); this will make the entire string black. No Bugs, marco