Ignore:
Timestamp:
Jan 19, 2003, 8:42:16 PM (23 years ago)
Author:
umoeller
Message:

First attempt at new container contol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/textview.c

    r229 r242  
    18901890
    18911891} TEXTVIEWWINDATA, *PTEXTVIEWWINDATA;
    1892 
    1893 #define ID_VSCROLL      100
    1894 #define ID_HSCROLL      101
    18951892
    18961893/*
     
    23272324                // can be NULL
    23282325    PCREATESTRUCT       pcs = (PCREATESTRUCT)mp2;
    2329     SBCDATA             sbcd;
    23302326
    23312327    MRESULT             mrc = (MRESULT)TRUE;     // error
     
    23832379        ptxvd->rclViewReal.yTop = pcs->cy;
    23842380
    2385         sbcd.cb = sizeof(SBCDATA);
    2386         sbcd.sHilite = 0;
    2387         sbcd.posFirst = 0;
    2388         sbcd.posLast = 100;
    2389         sbcd.posThumb = 30;
    2390         sbcd.cVisible = 50;
    2391         sbcd.cTotal = 50;
    2392 
    2393         ptxvd->hwndVScroll = WinCreateWindow(hwndTextView,
    2394                                              WC_SCROLLBAR,
    2395                                              "",
    2396                                              SBS_VERT | SBS_THUMBSIZE | WS_VISIBLE,
    2397                                              10, 10,
    2398                                              20, 100,
    2399                                              hwndTextView,     // owner
    2400                                              HWND_TOP,
    2401                                              ID_VSCROLL,
    2402                                              &sbcd,
    2403                                              0);
     2381        winhCreateScrollBars(hwndTextView,
     2382                             &ptxvd->hwndVScroll,
     2383                             &ptxvd->hwndHScroll);
     2384
    24042385        fShow = ((ptxvd->flStyle & XS_VSCROLL) != 0);
    24052386        WinShowWindow(ptxvd->hwndVScroll, fShow);
    24062387        ptxvd->fVScrollVisible = fShow;
    24072388
    2408         ptxvd->hwndHScroll = WinCreateWindow(hwndTextView,
    2409                                              WC_SCROLLBAR,
    2410                                              "",
    2411                                              SBS_THUMBSIZE | WS_VISIBLE,
    2412                                              10, 10,
    2413                                              20, 100,
    2414                                              hwndTextView,     // owner
    2415                                              HWND_TOP,
    2416                                              ID_HSCROLL,
    2417                                              &sbcd,
    2418                                              0);
    24192389        fShow = ((ptxvd->flStyle & XS_HSCROLL) != 0);
    24202390        WinShowWindow(ptxvd->hwndHScroll, fShow);
Note: See TracChangeset for help on using the changeset viewer.