Re: [WIN] change bkgnd color of combo box
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Oct 25, 2000
- 471 views
Matt, Here are some links I found which *might* relate to my question about changing the background color of a combo box's list box; some may be relevant only to Win 3.0 or Win 3.1, but the first one looks like it might mean something, but I'm not sure what. What seems to me to be the problem is specifically changing the *background brush* ? Dan onctlcolor.htm ----- Original Message ----- From: "Matthew Lewis" <MatthewL at KAPCOUSA.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Wednesday, October 25, 2000 9:01 AM Subject: Re: [WIN] change bkgnd color of combo box > Yeah, that's what I get for doing this without testing (I didn't have Eu > where I wrote that)...I'd originally had trackObject() in the proc. Also, > you need to use returnValue(myBrush). > > Change the procedure to the following: > > -- begin code > > procedure CB_onEvent( integer iMsg, atom wParam, atom lParam ) > > if iMsg = WM_CTLCOLORLISTBOX then > returnValue( myBrush ) > end if > > end procedure > onEvent[CB] = routine_id("CB_onEvent") > > -- end code > > The only problem with this is that it doesn't affect the background of the > text in the box. I'm not sure how to get at that to change it. :( > > Matt Lewis > http://www.realftp.com/matthewlewis