Changeset 295 for trunk/src/comctl32/rebar.c
- Timestamp:
- Jul 12, 1999, 5:58:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/rebar.c
r252 r295 1 /* $Id: rebar.c,v 1. 6 1999-06-30 15:52:17cbratschi Exp $ */1 /* $Id: rebar.c,v 1.7 1999-07-12 15:58:48 cbratschi Exp $ */ 2 2 /* 3 3 * Rebar control … … 431 431 #if 0 432 432 else if (!lstrcmpA (szClassName, WC_COMBOBOXEXA)) { 433 INT nEditHeight, yPos; 434 RECT rc; 435 HWND hwndEdit; 436 433 437 /* special placement code for extended combo box */ 434 438 439 /* get size of edit line */ 440 hwndEdit = SendMessageA (lpBand->hwndChild, CBEM_GETEDITCONTROL, 0, 0); 441 GetWindowRect (hwndEdit, &rc); 442 nEditHeight = rc.bottom - rc.top; 443 yPos = (lpBand->rcChild.bottom + lpBand->rcChild.top - nEditHeight)/2; 444 445 /* center combo box inside child area */ 446 SetWindowPos (lpBand->hwndChild, HWND_TOP, 447 lpBand->rcChild.left, /*lpBand->rcChild.top*/ yPos, 448 lpBand->rcChild.right - lpBand->rcChild.left, 449 nEditHeight, 450 SWP_SHOWWINDOW); 435 451 436 452 }
Note:
See TracChangeset
for help on using the changeset viewer.