Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTComboBoxEx - Horizontal Scrolling
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTComboBoxEx - Horizontal Scrolling

 Post Reply Post Reply
Author
Message
Kevin6 View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Topic: CXTComboBoxEx - Horizontal Scrolling
    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.
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.156 seconds.