dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: ComboBox - increase the width of the right most drop down button

  1. #1
    Join Date
    Nov 2011
    Location
    India
    Posts
    309

    ComboBox - increase the width of the right most drop down button

    Hi,

    Using mouse, it was no problem to access the combo box. But, Using touch screen, it was very difficult to access the combobox.

    I was used the below code for increase combo height.

    how do i increase the drop down button width?


    Code:
            CComboBox* pCtl = (CComboBox*)GetDlgItem(IDC_CAM_SELECTION);
    	pCtl->SendMessage(CB_SETITEMHEIGHT,(WPARAM) -1,(LPARAM)35);// change heigh of combobox 
    	pCtl->SetItemHeight(0,35);// change the heigh of combobox's drop list item
    Regards,

    SaraswathiSrinath

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,593

    Re: ComboBox - increase the width of the right most drop down button

    Looks like you need to implement a custom draw or maybe even a custom control.
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)