DropDown Combo

From: vendmacro (a_at_a.com)
Date: 07/01/04


Date: Thu, 1 Jul 2004 10:13:42 +1000

Hi all,

Using MS VC++ .NET 2003 std ed to make a simple win32 dialog app, I used the
resource editor to place a combobox on my dialog. And then in the dialog
CALLBACK I add options for the combox box in the WM_INITDIALOG message. The
combo box is of standard / normal type ("Drop List") (not owner drawn
etc...). Now, after I successfully compile and run the app, when I click the
combo box "down arrow" THE DROPDOWN LIST DOES NOT DISPLAY, but I can cycle
thru the option by use of the arrow keys (on the keyboard). What have I done
(or not done) to prevent the display of the drop down options??? Thanks All!

For example:

switch (message)
{
case WM_INITDIALOG:
InitFields(hDlg);
break;
....

BOOL InitFields(HWND hDlg)
{
for (int i = 0; i < 148; ++i)
{
SendDlgItemMessage(hDlg, IDC_GENRE, CB_ADDSTRING, 0, (LPARAM) GENRE[i]);
}
....

}



Relevant Pages

  • Re: error 3048 - Cannot open any more databases
    ... The combo that uses the callback function as its RowSourceType will still be able to display the desired data. ... What happens is that you load the static array one, and then it calls the callback function whenever it needs a value. ... I am using these combo boxes not only as a way of selecting a ... > the same subform, just inserted 48 times. ...
    (microsoft.public.access.formscoding)
  • Gui
    ... I created a very simple gui using GUIDE. ... All seems to work except the MyGUI_OutputFcn callback (is ... have some display commands that it sends to standard output), ... appears that the input variables to the callback don't exist anymore. ...
    (comp.soft-sys.matlab)
  • Re: html associations
    ... whatever is the correct path and file name to your browser executable). ... I am having a problem with Assoedit When I ... me to resize the display with the mouse or the alt-F* keys. ...
    (comp.os.os2.apps)
  • Re: how to create a Hierarchical data model in the ListBox
    ... under this I want to display a sub-list ... the windows Folders Explorer) and If I click item1.1, ... when you create a listbox, the Callback is the same for every item ...
    (comp.soft-sys.matlab)
  • Re: Programming forms in cadence
    ... presses "OK". ... Then the callback is called and processes the input given. ... I simply display it again. ... Activating the form again, simply raises the already open form. ...
    (comp.cad.cadence)