Re: The Edit Control of a Combo Box...

From: BRM (BRM_at_discussions.microsoft.com)
Date: 08/16/04


Date: Mon, 16 Aug 2004 10:01:02 -0700


"Jeff Partch [MVP]" wrote:
> "BRM" <BRM@discussions.microsoft.com> wrote in message
> news:A6A1AFB7-3C60-4410-B97A-74AA50BBE31D@microsoft.com...
> > The MSDN documentation references a CComboBox::GetEditControl()
> > member, but VC++ 2003 neither brings it up in the quick reference drop
> down
> > while typing nor recognizes it as either Cmb->GetEditControl() or
> > GetEditControl() (where Cmb is a pointer to a ComboBox control).
> I can't find documentation of this member function, and don't think it
> exists. Do you have a link or reference to it?

Sorry about that one. I was looking at the CListCtrl at the time and thought
I was looking at the CComboBox. My mistake there.

> > I have set the combo boxes to be read-only so that the user cannot type in
> > data. Otherwise, the controls are pretty standard.
> I'm not sure what a read-only combobox is. Do you mean a CBS_DROPDOWNLIST
> style combobox? If so, there is no edit control.

The properties in the dialog editor for the combo box is set to Drop List. I
think (but am not positive) that that is CBS_DROPDOWNLIST style.

I just need to set the text of the combo box when the drop down is not
present to be a certain string that is dependant on the user action; and for
the time being, I'd rather not have to deal with the user editing that text
box.
 
> > I have also tried setting the window text, but that does not work either.
> > (Cmb->SetWindowText(msCStringwithtext);
> The documentation indicates that SetWindowText should work (if there is an
> edit control).

Thanks.

BRM



Relevant Pages

  • Re: Porting HP C from Alpha to Itanium - __DIVG_C
    ... User Action: See documentation for alternatives. ... Larry or his customer to report it through the normal channels. ... look at or fix problems that do not come through the normal bug reporting ...
    (comp.os.vms)
  • Re: ATL Richedit text change events
    ... EN_CHANGE documentation quite clearly states, ... quote: The parent window of the edit control receives this notification ...
    (microsoft.public.dotnet.languages.vc)
  • Re: ATL Richedit text change events
    ... EN_CHANGE documentation quite clearly states, ... quote: The parent window of the edit control receives this notification ...
    (microsoft.public.vc.language)
  • Re: ATL Richedit text change events
    ... EN_CHANGE documentation quite clearly states, ... quote: The parent window of the edit control receives this notification ...
    (microsoft.public.vc.atl)
  • Re: Porting HP C from Alpha to Itanium - __DIVG_C
    ... This Alpha built-in function is not available on the IA64 ... platform. ... User Action: See documentation for alternatives. ...
    (comp.os.vms)