/* see if we need to change the word break proc on the edit */
if ((infoPtr->dwExtStyle ^ dwTemp) & CBES_EX_PATHWORDBREAKPROC)
SetPathWordBreakProc(infoPtr->hwndEdit,
- (infoPtr->dwExtStyle & CBES_EX_PATHWORDBREAKPROC) ? TRUE : FALSE);
+ (infoPtr->dwExtStyle & CBES_EX_PATHWORDBREAKPROC) != 0);
/* test if the control's appearance has changed */
mask = CBES_EX_NOEDITIMAGE | CBES_EX_NOEDITIMAGEINDENT;
item = infoPtr->edit;
if (infoPtr->hwndEdit) {
- INT len;
-
/* free previous text of edit item */
COMBOEX_FreeText(item);
item->mask &= ~CBEIF_TEXT;
* For EN_CHANGE this issues the same calls and messages
* as the native seems to do.
*/
- WCHAR edit_text[260];
LPCWSTR lastwrk;
cmp_func_t cmptext = get_cmp_func(infoPtr);
return COMBOEX_WindowPosChanging (infoPtr, (WINDOWPOS *)lParam);
case WM_SETFOCUS:
- SetFocus(infoPtr->hwndCombo);
+ if (infoPtr->hwndEdit) SetFocus( infoPtr->hwndEdit );
+ else SetFocus( infoPtr->hwndCombo );
return 0;
case WM_SYSCOLORCHANGE: