CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Join Date
    Aug 2013
    Posts
    12

    Re: Can't set text in Edit Box of ComboBox

    I'm not convinced you are.

    should have different window handle values. SendMessage should be the combo handle and ComboBox_SetText should be the edit handle (assuming that as you state ComboBox_SetText is equivalent to SetWindowText). It might be useful to post the code for ComboBox_SetText. Also you are not checking the return values of ComboBox_SetText to see if an error occured.
    hello 2kaud

    Lets say this SendMessage is working in CBN_SELCHANGE according to you(I have tried from my side its not working), but after this CBN_SELCHANGE returns, the value in edit box will be set as current selection.
    How should i stop it to set it current selection from list box(I know its normal behaviour of combo box but thats not working in my case).

  2. #17
    Join Date
    Aug 2013
    Posts
    12

    Re: Can't set text in Edit Box of ComboBox

    Hello Victor,

    I think u have discussed same issue in this thread. i am facing similar issue.

    http://forums.codeguru.com/showthrea...ox-of-ComboBox

  3. #18
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Can't set text in Edit Box of ComboBox

    Quote Originally Posted by jg028461 View Post
    Its having little complex functionality but whatever i am trying to achieve is easily possible.
    I could do a lot of things that basically possible, but I never do that because it will confuse my customers.
    Best regards,
    Igor

  4. #19
    Join Date
    Aug 2013
    Posts
    12

    Re: Can't set text in Edit Box of ComboBox

    Quote Originally Posted by Igor Vartanov View Post
    I could do a lot of things that basically possible, but I never do that because it will confuse my customers.
    yes, it can confuse customers but i want it to be more clear thats why this implementation is required for me.

  5. #20
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: Can't set text in Edit Box of ComboBox

    May I offer you a compromise?
    Have a simple drop-down box for your template. When user makes a selection - use it to construct your Subject field in ANOTHER edit box.
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

Page 2 of 2 FirstFirst 12

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