Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

CComboBox?

Hey
I am trying to teach my self MFC and I have
a couple of problems.
I really need your help guys couse I am stuck!!!
I created myApp with MFC appwizard as dialog (not SDI or MDI)
and I have button that will bring another dialog2 in my first dialog1 I have
combobox as dropdown list with data list
from second dialog I need to insert another string to my combobox
that located in dialog1 but some how it doesn't do it.
I am trying to add sting with AddString() function
How Can I do it?
thanks
Val
[551 byte] By [Val] at [2007-11-10 12:52:36]
# 1 Re: CComboBox?
Hi,
try to use:
::SendMessage(dialog1.m_hWnd, LB_ADDSTRING, 0, MyNewString)

I hope this works
Emad

Val <v_shteinberg@hotmail.com> wrote in message
news:38e3d152$1@news.dev-archive.com...
>
> Hey
> I am trying to teach my self MFC and I have
> a couple of problems.
> I really need your help guys couse I am stuck!!!
> I created myApp with MFC appwizard as dialog (not SDI or MDI)
> and I have button that will bring another dialog2 in my first dialog1 I
have
> combobox as dropdown list with data list
> from second dialog I need to insert another string to my combobox
> that located in dialog1 but some how it doesn't do it.
> I am trying to add sting with AddString() function
> How Can I do it?
> thanks
> Val
>
Emad Steitieh at 2007-11-11 20:52:45 >