🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1946

Re: Trouble with Combo Boxes

#1946
From: Raptor
Date: Wed, 03 Apr 1991 16:32
25 lines
1898 bytes
goble@wolf.cs.washington.edu (Brian Goble) writes:
>I have a dialog box that contains some static text controls, two push-
>buttons (OK and Cancel) and 5 Combo Boxes.  After "making" the proc
>instance, I call the DialogBox() function but I just get an hourglass
>forever.  But, if I remove the Combo Boxes from the script, the
>dialog box works fine.  All the Combo Boxes are using CS_DROPDOWN.

>Any ideas why it would hang like this because of Combo Boxes?

It may not be the combo boxes.  I ran into similar circumstances when
I had my dialog box handler coded up all wrong, doing a lot of
WM_INITDIALOG stuff in my WM_COMMAND section and basically
re-engineering the wheel.  I found out that a lot of control functions
(SendDlgItemMessage, CheckRadioButton, etc) send your dialog function
messages of their own, so I ended up causing myself a lot of infinite
loops.  I happened to look at the sample applications in the SDK and
they set me straight.  (Oh, so THAT's what that stuff's there for. :-)

Run the debugger and break at the top of your dialog function, and
watch the messages it's getting to make sure they're what you expect.
-- 
Lynn Wallace			   |I am not an official representative of
Evans and Sutherland Computer Corp.| <- E&S.  Or for that matter, unofficial.
Salt Lake City, UT 84108	   |Internet: lwallace@javelin.sim.es.com
			War not make one great! -- Yoda
Technical Details
Message-ID: <1991Apr3.163239.856@javelin.sim.es.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!orca!javelin.es.com!lwallace
References: <1991Apr2.202813.8958@beaver.cs.washington.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!orca!javelin.es.com!lwallace
From: lwallace@javelin.sim.es.com (Raptor)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Trouble with Combo Boxes
Keywords: combo box, dialog box
Message-ID: <1991Apr3.163239.856@javelin.sim.es.com>
Date: 3 Apr 91 16:32:39 GMT
References: <1991Apr2.202813.8958@beaver.cs.washington.edu>
Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah
Lines: 25