Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms.programmer Subject: Re: Help: custom controls in a dialog box Keywords: custom control Message-ID: <72298@microsoft.UUCP> Date: 12 May 91 07:08:03 GMT References: <5992@tellab5.tellabs.com> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 16 In article <5992@tellab5.tellabs.com> saba@tellabs.com (Bruce Sabalaskey) writes: >I've been having trouble trying to display a custom control in a >modeless dialog box. Can anyone tell me what I am doing wrong? > >Here's the background: >dialog box with CreateDialog(), it always returns a NULL (0) window >handle when the custom control is in the dialog box. If I take the >custom control out of the dialog box, the dialog box gets created >properly. (Turbo debugger sure made this easy!) > (PS: yes, i've thunked the dialog proc) I had this happen once because I forgot to do a RegisterClass on the name of the custom control. Maybe that's your problem. --Ken Disclaimer: The above opinions are solely my own.