Article View: comp.windows.ms.programmer
Article #2578Re: Help: custom controls in a dialog box
From: Ken SYKES
Date: Sun, 12 May 1991 07:08
Date: Sun, 12 May 1991 07:08
16 lines
1186 bytes
1186 bytes
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.
Technical Details
Message-ID:
<72298@microsoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!microsoft!kensyReferences:
<5992@tellab5.tellabs.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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