... which makes us practically brothers!:alright:
That was an uncalled for personal attack you should apologize ;)
Leafs :(
Blues :(
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.
I was hoping to see a Leafs/Blues Cup playoff. That would have been fun.
I was hoping to see a Leafs/Blues Cup playoff. That would have been fun.
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".
Gretzky. Yeah. We rented him for a couple of months.
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?
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?
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. :)
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. :)
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?
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?
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.