Ignore:
Timestamp:
Jul 12, 1999, 5:58:51 PM (26 years ago)
Author:
cbratschi
Message:

wine-990704 updates, TBCUSTOMIZE implemented

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:17 cbratschi Exp $ */
     1/* $Id: rebar.c,v 1.7 1999-07-12 15:58:48 cbratschi Exp $ */
    22/*
    33 * Rebar control
     
    431431#if 0
    432432            else if (!lstrcmpA (szClassName, WC_COMBOBOXEXA)) {
     433                INT nEditHeight, yPos;
     434                RECT rc;
     435                HWND hwndEdit;
     436
    433437                /* special placement code for extended combo box */
    434438
     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);
    435451
    436452            }
Note: See TracChangeset for help on using the changeset viewer.