CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Posts
    53

    MFC Combo troubles

    Hi,

    I have an MFC Dialog based application with comboboxes.

    I need to change the drop height of the combo box plus the type (Simple, Drop Down, etc) in code.

    ModifyStyle() doesn't seem to be working on changing the type from CBS_SIMPLE to CBS_DROPDOWN and vice versa, and there does not seem to be a function to change the drop height.

    How can I do this??

    Thanks
    Jim

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430
    I need to change the drop height of the combo box plus the type (Simple, Drop Down, etc) in code.
    As for the drop height, take a look at this Joseph M. Newcomer's sample:
    A Dynamically-Resized Combo Box

  3. #3
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    Many styles cannot be changed after a window has been created and the type of change you need to make seems to be especially unliklely to be possible.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured