Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ames!pasteur!ucbvax!decwrl!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Dialog Structure and File I/O Message-ID: <106580023@hpcvlx.HP.COM> Date: 30 Jan 89 18:26:58 GMT References: <213@secola.Columbia.NCR.COM> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 15 > I have two questions for the net. First, how can I access directly the > windows structure or structures for a particular dialog box given the > handle to that box? .......... > ..... I must be able to find out three things: > 1) What fields are in the dialog box > 2) What type of fields they are > 3) What the user-entered contents are Well, since a dialog box is just a parent window with a bunch of children, you can use EnumChildWindows to get the children of the dialog box (all the controlls), then query each of the children in turn. Once you know the type of field, you can do special work depending on that field (such as, an EDIT can be quite large, and you might use EM_GETHANDLE to get the contents). --Bill Turner