Title: RE: [MSVC] RE: [windev] Window messages 0x1AE,0x1AF (ComboLBox wndclass)

> If all you need is getting rid of the 3D border, can't you subclass a
> normal combo box, and over-draw the 3D border with the bg color (or some
> other similar method to eliminate the border)?

Can I ask why you feel the need / desire to remove that border? With all the
Windows versions out there and to come, it's rather unwise to try and partly
owner-draw controls (except those purely of your own creation, of course)
since in most cases they look different on the different platforms. If you
were to draw them entirely and just use the functionality, it would probably
be OK; but with only part drawing you risk unexpected side-effects due to
differences in rendering on the various versions...

Also, from a user point of view, you're forcing the user to a specific look
for their controls... with XP and upwards, the user isn ow given even more
choice over how controls look by using Visual Styles - you would be
neutralizing that extra choice by manual drawing.

I can't suggest an answer to your problem; in the past I have tried
replacing a combo with and edit box / button (for the arrow) / list box (I
didn't like the way a dropdown list combo couldn't get the caret to show it
had the focus, and the way it didn't match edit box behaviour in terms of
how it looked when disabled - but this WAS Windows 3.x at the time!), and it
was tricky indeed... fighting Windows just isn't worth the effort {:v)

--
Jason Teagle
[EMAIL PROTECTED]

Reply via email to