- Two controls...
- Posted by gw7rib@aol.com on November 14th, 2007
I've seen a couple of controls in other people's programs that I
thought were useful, and was wondering if anyone knew how I could
incorporate them into my own programs.
The first is a button, which has some text on it and also a pair of up
and down arrows. Clicking on the button allows the user to choose from
a menu, and the text chosen is then shown on the button. This looks a
very neat way of choosing between a small number of short text
options. It is used in Novell Groupwise 6.5, in the search and rules
sections. I think it may be called a menu button, but I could be wrong
about this. Does anyone know how to use one? And do I have to detect
the button push and display the menu, etc, or can I just set it up and
let it look after itself?
The other control is an editbox, for receiving a file name, with a
button to the side with an icon of a file on it. Clicking the button
opens a file dialog to choose a file. I'm aware of the GetOpenFileName
command, which runs a file dialog, but I was curious as to whether it
was possible to get the button put there automatically and/or for it
to run the file dialog automatically.
Thanks in advance.
Paul.
- Posted by Christian ASTOR on November 15th, 2007
gw7rib@aol.com wrote:
It's about the same thing than a BTNS_DROPDOWN Toolbar button
(TBSTYLE_EX_DRAWDDARROWS)
You can embed both controls in a custom control, but it's not very
useful as it's very basic...
- Posted by gw7rib@aol.com on November 15th, 2007
gw7...@aol.com wrote:
Since posting this, I have found http://msdn2.microsoft.com/en-us/library/bb775791.aspx
which seems to suggest that the control I want is a combo box drop
down list. Certainly the thing shown looks very similar to what I want
(admittedly there is only a down arrow rather than both, and the list
box is below the edit box rather than over it, but I can live with
that...) However, when I try to use it (I am using COMBOBOX in an .rc
file) the box I get has a white background whereas the arrow has a
grey background - is it possible to get a grey background for the
whole lot as promised?
- Posted by Christian ASTOR on November 16th, 2007
gw7rib@aol.com wrote:
WM_CTLCOLORLISTBOX
- Windows CE webserver how to use ActiveX controls/.NET controls/Java applets (Windows CE) by nonamece@yahoo.co.uk
- VLC controls (Video & DVD) by DVDfanatico
- VLC controls (Video & DVD) by DVDfanatico
- VB Controls on windows 2003 ( 16 bit controls) (Windows Server) by Pranesh
- Web Controls (Windows CRM) by Kristina Ledford

