Print Page | Close Window

CXTComboBoxEx - Horizontal Scrolling

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=2682
Printed Date: 27 November 2024 at 4:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTComboBoxEx - Horizontal Scrolling
Posted By: Kevin6
Subject: CXTComboBoxEx - Horizontal Scrolling
Date Posted: 04 August 2005 at 8:56am

Dear CodeJock,

 I am creating a Property Grid to have a bespoke GridItem in a Pane. The Grid Item will consist of a CXTComboBoxEx and a CXTButton.

There exists a problem when trying to get the Horizontal scrolling enabled in the CXTComboBoxEx.

Here is a code snip -:

 // The class declaration.

class CTraSerFPCustomInPlaceListBox : public CXTComboBoxEx

I then create the control in the OnSelect handler for my GridItem in the Pane. This works fine and my controls are displayed as I expect them to be. Here is the code snip -:

DWORD dwStyle = WS_BORDER|WS_CHILD|WS_VISIBLE|WS_VSCROLL| WS_HSCROLL |CBS_DROPDOWNLIST;

m_wndComboBox.Create( dwStyle , rcCombo, (CWnd*)m_pGrid, 1972);

m_wndComboBox.SetHorizontalExtent(400);

I have a message map set up for these classes so I can handle some simple interaction.

Notice that I have specified the creation of the class CXTComboBoxEx with  the WS_HSCROLL and a subsequent call to SetHorizontalExtent.

If I use CXTComboBoxEX - it does not work.

If I derive my class from CComboBox - the Horizontal scroll bars appear.

If I am missing something please let me know is there a work around- or otherwise confirm this as a bug ?

Other than this seemingly minor issue - keep up the good work - I look forward to your reply.

regards

Kevin.



-------------
Kevin.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net