Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!agate!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Hilighting Text in edit fields Message-ID: <106580050@hpcvlx.HP.COM> Date: 6 Jul 89 17:40:45 GMT References: <12265@polyslo.CalPoly.EDU> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 10 > You send the EM_SETSEL message to the edit window to highlight text. In > order to do that when the window gets the focus, you will have to subclass > the edit window and look for an incoming WM_SETFOCUS message. Not necessarily -- when the edit field gets the focus, it sends an EN_SETFOCUS notification to its parent (WM_COMMAND, wParam == edit field ID, LOWORD(lParam) == EN_SETFOCUS) --Bill Turner (bturner@hp-pcd.hp.com) HP Corvallis Information Systems