Re: Can't set text in Edit Box of ComboBox
Quote:
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).
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
Re: Can't set text in Edit Box of ComboBox
Quote:
Originally Posted by
jg028461
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.
Re: Can't set text in Edit Box of ComboBox
Quote:
Originally Posted by
Igor Vartanov
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.
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.