From: Manu <ma...@wa...> - 2003-12-29 01:24:24
|
A few notes: Myke Predko wrote: [...] > COMBOBOX ID_PORT, 78, 2, 70, 14, CBS_DROPDOWN | WS_TABSTOP ^^ you should set the height of the dropdown list. eg: 78, 2, 70, 60 [...] > Along with this, when I press the "Tab" > key, the focus does not change from button, or control to the next one. [...] Your message loop should be like: while (GetMessage(&Msg,NULL,0,0)){ if (!TranslateAccelerator(hwnd,hAccelTable,&Msg)){ if ((!IsWindow(hwnd)) || (!IsDialogMessage(hwnd,&Msg))){ ^^^^^^^^^^^^^^ process dialog messages TranslateMessage(&Msg); DispatchMessage(&Msg); } } } IsDialogMessage: The IsDialogMessage function determines whether a message is intended for the specified dialog box and, if it is, processes the message. See a working example from FoosYerDoos: http://www.foosyerdoos.fsnet.co.uk/MainFiles/DynaContainFiles/Code/Resources.html Manu. |