Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!ztivax!tumuc!lan!rommel From: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Newsgroups: comp.windows.ms Subject: Child windows Message-ID: <810@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 22 Sep 89 12:10:00 GMT References: <809@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Sender: news@lan.informatik.tu-muenchen.dbp.de Reply-To: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Organization: Inst. fuer Informatik, TU Muenchen, W. Germany Lines: 20 When I create some overlapped child windows in the client area of a program, they all get an "inactive" border and caption bar. I did not find a usable way to get the child window with the input focus having an "active" frame and caption bar (like it is the case in Excel). I SPYed on the window messages to the child windows. When one is activated, it gets a WM_CHILDACTIVATE and a WM_NCPAINT message but when it is deactivated, it only gets a WM_NCPAINT. What can I do on this message (return a special flag or a brush like on a WM_CTLCOLOR) ? In the SDK docs I did not find any help. In the Appl. style guide are many suggestions for multidocument programs wich are really good but there isn't any hint how to implement these features. Can anybody help ? Thanks in advance, Kai Uwe Rommel, Munich