Changeset 31 for trunk/src/plugins


Ignore:
Timestamp:
Nov 8, 2007, 10:06:06 PM (18 years ago)
Author:
lpino
Message:
  • Implemented some methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Control.java

    r24 r31  
    528528}
    529529
    530 //@@TODO(dmik)
    531 //void drawBackground (int hps) {
    532 //    RECT rect = new RECT ();
    533 //    OS.GetClientRect (handle, rect); //@@ WinQueryWindowRect
    534 //    drawBackground (hDC, rect);
    535 //}
     530
     531void drawBackground (int hps) {
     532    RECTL rcl = new RECTL ();
     533    OS.WinQueryWindowRect (handle, rcl);
     534    drawBackground (hps, rcl);
     535}
    536536
    537537void drawBackground (int hps, RECTL rcl) {
     
    689689    // Individual controls will use OS.CV_CXBORDER (or other) when appropriate
    690690    return 0;
    691 //@@TODO(dmik): remove
    692 //    int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
    693 //    if ((bits & OS.WS_EX_CLIENTEDGE) != 0) return OS.GetSystemMetrics (OS.SM_CXEDGE);
    694 //    if ((bits & OS.WS_EX_STATICEDGE) != 0) return OS.GetSystemMetrics (OS.SM_CXBORDER);
    695691}
    696692
     
    702698    if (parent != null) {
    703699        if (parent.pswp != 0) {
    704 //@@TODO(dmik): remove
    705 //            int oldHdwp = parent.hdwp;
    706 //            parent.hdwp = 0;
    707 //            OS.EndDeferWindowPos (oldHdwp);
    708 //            int count = parent.getChildrenCount ();
    709 //            parent.hdwp = OS.BeginDeferWindowPos (count);
    710700            endDeferWindowPos (parent);
    711701            int count = parent.getChildrenCount ();
     
    14271417    checkWidget ();
    14281418    if (!OS.WinIsWindowVisible (handle)) return;
    1429 //@@TODO (dmik): remove   
    1430 //    int flags = OS.RDW_ERASE | OS.RDW_FRAME | OS.RDW_INVALIDATE;
    1431 //    OS.RedrawWindow (handle, null, 0, flags);
    14321419//@@TODO(dmik): should we always invalidate children?
    14331420    OS.WinInvalidateRect (handle, null, false);
Note: See TracChangeset for help on using the changeset viewer.