Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - ComboBox with WS_EX_LEFTSCROLLBAR
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComboBox with WS_EX_LEFTSCROLLBAR

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 915
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: ComboBox with WS_EX_LEFTSCROLLBAR
    Posted: 01 April 2025 at 3:58pm
We have some combo boxes with the WS_EX_LEFTSCROLLBAR style. Skinning isn't working on them. To see the issue open the SkinControls sample. Then in the resource editor click on, e.g., the Horizontal alignment combo box and in the properties window set "Left Scrollbar" to true. Build and run. See the image below where the text is shifted and the drop arrow is not displayed while the drop arrow on the right is displayed. Clicking in either place drops the box. 

For a ComboBoxEx the drop actually draws over the icon that is left of the text. I have an image for that too. That image is from our app where we have to call SubclassDlgItem on any ComboBoxEx and which we have the WindowProc handle WM_DRAWITEM (due to issues I previously posted where the skinned combobox won't draw white text). In order to get our image to display correctly I have to remove WS_EX_LEFTSCROLLBAR.

Any fix Codejock to the skinning combo class I would appreciate getting hold of. It would be great if CJ modified the sample to use a ComboBoxEx with images and fix the issues with it too.




Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.