Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!gatech!ncsuvx!lll-winken!uunet!mcvax!unido!rmi!infoac!micro From: micro@infoac.rmi.de (unbekannt) Newsgroups: comp.windows.ms Subject: Re: How do I know if a child window is alive Keywords: child window, alive, FindWindow Message-ID: <432@infoac.rmi.de> Date: 31 Dec 88 14:00:40 GMT References: <15155@genrad.UUCP> Reply-To: micro@infoac.rmi.de (unbekannt) Organization: RMI Net * Aachen/Hamburg/Flensburg * W.Germany Lines: 84 Newsgroups: comp.windows.ms Subject: MSWindows SDK Problem Summary: Expires: Sender: Reply-To: micro@infoac.rmi.de (unbekannt) Followup-To: Distribution: microCom Software Gmbh (Germany) Organization: RMI Net * Aachen/Hamburg/Flensburg * W.Germany Keywords: We have some problems, dealing with the MSWindows-SDK. 1. We are trying to create modeles-Dialogs. Within these Dialogs we have some fields that are editable but sometimes they are not. This depends on some data in other fields. To show the user, which field is editable, we want to temporary disable/ enable the Border arround the Edit fields. The first imagination to do so was, simply use SetWindowLong(hWnd,GWL_STYLE...) to change the WS_BORDER style from the Edit-Control-Window. But no success. After using SetWindowLong, the Border arround the Edit fields remains visible/not visible, depending on the WS_BORDER flag, set during creation of the Dialog. To work arround this problem we will switch to use two types of Edit-Controls, one w/wo the WS_BORDER flag. But this will cost more Code and time, and I feel that there must be another way to enable/disable the Border arround an Edit-Control. Maybe anyone has some suggestions for us to do so. 2. Our second problem is, that we want to use more than one Edit- Control with each more than about 32K of memory. Because of the use of the LocalHeap, this seems not to be possible. But someone told me to GlobalAlloc Memory and then to pass the GlobalHandle to My Edit-Control as the hInstance parameter of the CreateWindow function. My code looks like that : hGlobalMemory=GlobalAlloc(GMEM_MOVEABLE,32760L); hEditControl=CreateWindow("Edit",....,hGlobalMemory...); But does not work. Maybe anyone has a solution to this problem. Thanks and regards Marcus Roskosch microCom Software GmbH (Germany)