bleed-through at lower edge of combo box

Started by John Montenigro, September 14, 2006, 01:24:27 AM

Previous topic - Next topic

John Montenigro

When my compiled program runs, there is a narrow horizontal band at the lower edge of the ComboBox that seems to be "transparent" - it gets painted as whatever's under that area of the Main form. That stuff moves with the rest of the form and its controls when the overall form is moved.

Any ways to eliminate this?

Thanks,
-John


Hopefully relevant info, copied from frmMain.frm  (the Form and a Combobox):

[ControlType] Form | PropertyCount=20
name=frmInput
classstyles=CS_VREDRAW, CS_HREDRAW, CS_DBLCLKS
windowstyles=WS_POPUP, WS_THICKFRAME, WS_CAPTION, WS_SYSMENU, WS_MINIMIZEBOX, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_VISIBLE|WS_EX_WINDOWEDGE, WS_EX_CONTROLPARENT, WS_EX_LEFT, WS_EX_LTRREADING, WS_EX_RIGHTSCROLLBAR
backbitmap=
backbitmapmode=0 - Tiled
backcolor=SYS,15
caption=FVC Program
export=False
height=411
icon=
left=0
mdichild=False
startupposition=0 - Manual
tabcontrolchild=False
tabcontrolchildautosize=False
tag=
tag2=
top=0
width=789
windowstate=0 - Normal

[ControlType] ComboBox | PropertyCount=13 | zorder=11 | tabindex=0 |
name=cmboOptions
windowstyles=WS_CHILD, WS_VSCROLL, WS_TABSTOP, CBS_SIMPLE, CBS_HASSTRINGS|WS_EX_CLIENTEDGE, WS_EX_LEFT,
WS_EX_LTRREADING, WS_EX_RIGHTSCROLLBAR
backcolor=SYS,5
controlindex=0
font=Tahoma,-13,0,0,0,400,0,0,0,1,0,0,0,0
forecolor=SYS,8
height=24
left=12
text=Concepts
tag=
tag2=
top=24
width=180

TechSupport

Apparantly, this is a bug as identified by Microsoft: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B128110

You can fix it by unchecking the WS_CLIPCHILDREN for your Form. Another thing that works is to leave the WS_CLIPCHILDREN checked, but check the CBS_NOINTEGRALHEIGHT for thr ComboBox.

I will need to modify FireFly to generate code to manually repaint the gap.

John Montenigro

Quote from: TechSupportApparantly, this is a bug as identified by Microsoft: http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B128110

You can fix it by unchecking the WS_CLIPCHILDREN for your Form. Another thing that works is to leave the WS_CLIPCHILDREN checked, but check the CBS_NOINTEGRALHEIGHT for thr ComboBox.

I will need to modify FireFly to generate code to manually repaint the gap.

OK: unchecking WS_CLIPCHILDREN on the Form worked, but leaves a slight edge.

Leaving it checked and checking CBS_NOINTEGRALHEIGHT on the ComboBox produces a cleaner appearance.

I'll be using the second solution!

Thanks!
-John