Original Post
Hello It's like this, i have created 2 combo boxes ( CBS_DROPDOWN ): And initialized them: And they work to "drop down", but i can't make a selection with the mouse i can only use the up,down arrows on the keyboard and while the drop down box is "dropped down" i can't do anything with the program before i make a selection with the arrow keys and press enter. It's like the program is "frozen", or not in active at all. So the big problem is, how do i get my dropdown combobox to be able to make a selection with the mouse?
hType = CreateWindowEx(WS_EX_CLIENTEDGE, "COMBOBOX", "", WS_VISIBLE|WS_CHILD|CBS_DROPDOWN, 375, 50, 100, 130, hwnd, (HMENU)IDC_TYPE , GetModuleHandle(NULL), NULL);
hRType = CreateWindowEx(WS_EX_CLIENTEDGE, "COMBOBOX", "", WS_VISIBLE|WS_CHILD|CBS_DROPDOWN, 375, 185, 100, 130, hwnd, (HMENU)IDC_RTYPE, GetModuleHandle(NULL), NULL);
SendMessage(hType , CB_ADDSTRING,0, (LPARAM)"1 Byte" );
SendMessage(hType , CB_ADDSTRING,0, (LPARAM)"2 Bytes");
SendMessage(hType , CB_ADDSTRING,0, (LPARAM)"4 Bytes");
SendMessage(hType , CB_ADDSTRING,0, (LPARAM)"6 Bytes");
SendMessage(hType , CB_ADDSTRING,0, (LPARAM)"8 Bytes");
SendMessage(hRType, CB_ADDSTRING,0, (LPARAM)"1 Byte" );
SendMessage(hRType, CB_ADDSTRING,0, (LPARAM)"2 Bytes");
SendMessage(hRType, CB_ADDSTRING,0, (LPARAM)"4 Bytes");
SendMessage(hRType, CB_ADDSTRING,0, (LPARAM)"6 Bytes");
SendMessage(hRType, CB_ADDSTRING,0, (LPARAM)"8 Bytes");
SetWindowText(hType , "6 Bytes");
SetWindowText(hRType, "6 Bytes");