Re: ComboBox character handling



In <0LudnSyT8-KayrHXnZ2dnUVZ_tudnZ2d@xxxxxxxxxxxx>, on 06/07/2009
at 05:10 PM, Jim Moe <jmm-list.AXSPAMGN@xxxxxxxxxxxxxx> said:

Hi Jim,

As it turns out, it is the area of the client (parent) that would be
covered by the list box if it were showing.

If you mean the parent of the combobox, then just invalidate this area of
the parent's window. Use WinMapWindowPoints to convert the combobox
rectangle to the parent's coordinates.

How would I know that? The structure of a combination box is not
described anywhere except in the most general terms ("It is a combination
of an entry field and a list box.").

I don't know where you read this. This is what my copy of the PMG&R has
to say

<snip>
A combination box is two controls in one: an entry field and a list box.
This chapter describes how to use combination-box controls, also called
combination boxes and prompted entry fields, to let the user choose and
edit items from a list in PM applications. </snip>

IAC, the docs are what they are so it's not terribly productive to
complain about missing or incorrect content. If something is not clear,
you need to ask questions. Just making statements will probably not get
you answers to your questions.

I have used PMTree. It shows the listbox as a completely separate
control from the combination box, as you say. The entry field is shown as
a child of the combination box. Why not the list box as well? The
hiearchy makes little sense to me.

Try visualizing it differently and it should make sense. PMTree shows the
combobox and the entry field windows because they exist. PMTree can not
show what does not exist. Activating PMTree causes the combobox window
procedure to close the listbox window, at least that is what appears to be
happening. It does not appear that the listbox is given to the Object
window for safekeeping while it is not visible.

Since the drop down arrow does not show up as a separate window, one has
to suspect it's a graphic image managed by the combobox control.

Steven

--
--------------------------------------------------------------------------------------------
Steven Levine <steve53@xxxxxxxxxxxxxxxxxxx>
eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com
--------------------------------------------------------------------------------------------

.



Relevant Pages

  • Re: New Combobox disabled
    ... By main window, do you mean the Word Application window? ... I meant the UserForm window. ... the UserForm is where the combobox needs to reside... ... And finally, if you want to create a ComboBox and populate it at run-time in a MultiPage, you can use the 'Controls' collection too, of the specified Page. ...
    (microsoft.public.vb.winapi)
  • Replacing a EntryField with a ComboBox
    ... I wish to replace and Entry Field with a ComboBox. ... When the parent window is made ...
    (comp.os.os2.programmer.misc)
  • Re: Replacing a EntryField with a ComboBox
    ... I wish to replace and Entry Field with a ComboBox. ... When the parent window is made ... a dead area. ...
    (comp.os.os2.programmer.misc)
  • Re: Add text to combobox in regular WndProc
    ... One thing I noticed about that CreateWindow() for the combo ... A child control doesn't have a menu, so this should be set to ... child control you have in your window, ... when sending the ComboBox a CB_ADDSTRING message. ...
    (microsoft.public.win32.programmer.ui)
  • Re: addstring to list box
    ... ehello there.Can you tell me how to find the hwnd id of my dialog box(in my ... entry) a combobox in my dialog based win app from my thread. ... > the window handle meaning that your message will go to ALL TOP LEVEL windows ... > could dereference the pointer and use the data to update the combobox. ...
    (microsoft.public.windowsce.embedded.vc)