DropDown Combo
From: vendmacro (a_at_a.com)
Date: 07/01/04
- Next message: Jeff Partch: "Re: DropDown Combo"
- Previous message: Marc: "Re: Alt-Tab Type window retrieval"
- Next in thread: Jeff Partch: "Re: DropDown Combo"
- Reply: Jeff Partch: "Re: DropDown Combo"
- Messages sorted by: [ date ] [ thread ]
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]);
}
....
}
- Next message: Jeff Partch: "Re: DropDown Combo"
- Previous message: Marc: "Re: Alt-Tab Type window retrieval"
- Next in thread: Jeff Partch: "Re: DropDown Combo"
- Reply: Jeff Partch: "Re: DropDown Combo"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|