Two CComboBox problems...

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


Date: Fri, 20 Aug 2004 11:16:58 -0700

I am almost finished with my new combo box, but I have two problems left.
(1) I need to reset the content, which works fine with ResetContent(),
however, when I later try to set the text using SetWindowText either of the
Edit Box directly (since it is subclassed) or using the Combo Box's
SetWindowText(), it does not get reset. I try to set the text both directly
after all the content has been removed, and also after I have filled the new
content in. Neither time will it get the text.

(2) I need to detect when the user presses the enter key in the Edit Box. I
have most of the WM_* messages mapped that CComboBox would normally get, and
I basically call the CComboBox equivalent. (I.e. CComboBox::OnKeyUp() for
WM_KEYUP). However, I tried setting a break point to see the data coming
through in order to try to determine where to capture the message so that I
can process it.

I essentially have content in the list box of the Combo Box that needs to be
appended to the content of the Edit Box, and then the List Box data needs to
be reloaded based on what was selected. I can get the selection just fine.
(I think I even tried doing #1 from where I get the selection and after all
of the content loading is complete outside of my load function.)

Help much appreciated!

TIA,

BRM



Relevant Pages

  • Re: VBA command for edit cell mode
    ... edit the cell as they normally would...I guess I can use: ... Thanks much for the method to capture the user's previous selection. ... > Public OldRange As Range ...
    (microsoft.public.excel.programming)
  • Re: Editing Objects
    ... There is a selection on the Right Mouse Button menu, ... selection opens another menu with Edit, Open, and Convert. ... Selecting Edit ... Paste into PPT. ...
    (microsoft.public.powerpoint)
  • Re: Editing Objects
    ... There is a selection on the Right Mouse Button menu, ... > selection opens another menu with Edit, Open, and Convert. ... Selecting Edit ... some extent, within PPT. ...
    (microsoft.public.powerpoint)
  • Re: How to detect clicking of TEdit?
    ... I did have this workind by looking for the EN_SETFOCUS on my mainform to ... detect the selection on the edit, trouble is in my app, my controls are all ... sent to the form when you put the edit on a panel. ... > the problem that i now have if detecting when a TEdit recieves focus, ...
    (comp.lang.pascal.delphi.misc)
  • To Steve Schapel, another question?
    ... You can reset the properties on the forms using the "On ... >If the user hits the EDIT button, ... So for instance if you hit the EDIT button, ... I have had many problems maintaining the ...
    (microsoft.public.access.forms)