CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    137

    CEdit or CComboBox

    I have a dialog. I want to put either a CEdit or a CComboBox in it.

    That is, I want an edit box when I create the dialog this time. The next time I create it, I want it to be a combo box instead.

    I could put two controls on top of each other, and just make one visible, but I hate doing that.

    Is there a better way?

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: CEdit or CComboBox

    You can create one you need at the runtime.
    I do not think there is anything wrong with showing stacked controls that you add in resource editor.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

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