... which makes us practically brothers!:alright:
Doc,

That was an uncalled for personal attack you should apologize ;)

Leafs :(
Blues :(
Posted on 2003-04-26 10:49:31 by donkey
The Blues have become the Cubs of hockey. But the Cubs never make the playoffs.

I was hoping to see a Leafs/Blues Cup playoff. That would have been fun.
Posted on 2003-04-26 11:30:56 by drhowarddrfine

I was hoping to see a Leafs/Blues Cup playoff. That would have been fun.
Getting way off topic here :)

That would certainly have been fun but if it happened I would be legally required as a Canadian to begin flaming you, it is Hockey after all and there is nothing more engrained in the psyche of Canadians than that. I think there's a "love it or leave" law on the books in Canada concering Hockey - the "Howe/Gretzky law".
Posted on 2003-04-26 12:05:05 by donkey
Gretzky. Yeah. We rented him for a couple of months.
Posted on 2003-04-26 13:17:47 by drhowarddrfine
It's been a couple of weeks since this post was made and the solution given.

I assumed that the same technique would work for coloring buttons (with WM_CTLCOLOREDIT changed to WM_CTLCOLRBTN), but this doesn't seem to work.

I already have seen that WM_CTLCOLOREDIT also works on combo boxes as well.

Since there are also WM_CTLCOLORDLG, WM_CTLCOLORLISTBOX, WM_CTLCOLORSCROLLBAR, WM_CTLCOLORMSGBOX, and WM_CTLCOLORSTATIC, I would have thought that changing background color etc would work the same on these controls.

PS: Since originally posting this reply, I tried the technique on 'static' and it works fine. I guess the question is: "What gives on 'button' coloring?
Posted on 2003-05-03 17:06:45 by msmith
Hi msmith,

I covered buttons in an earlier post in this thread, you might have missed it. It only works with owner-drawn as far as I can tell. I've never gotten it working either though to be honest I've never put in a whole lot of effort. :)
Posted on 2003-05-03 17:25:09 by donkey
There was a mention earlier in this thread that I should destroy the brush after use in order to avoid a memory leak.

Since returning the brush is the last thing you do before returning ( in the WM_CTLCOLOREDIT event), when or where do you destroy the brush?
Posted on 2003-05-04 23:56:14 by msmith
Initialize the brush in WM_CREATE or WM_INITDIALOG, and destroy it in WM_DESTROY. Also, remember to SelectObject the old object (returned by the SelectObject(newObject) call) into the device context.
Posted on 2003-05-05 02:47:34 by f0dder