- Timestamp:
- Nov 8, 2007, 10:06:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Control.java
r24 r31 528 528 } 529 529 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 531 void drawBackground (int hps) { 532 RECTL rcl = new RECTL (); 533 OS.WinQueryWindowRect (handle, rcl); 534 drawBackground (hps, rcl); 535 } 536 536 537 537 void drawBackground (int hps, RECTL rcl) { … … 689 689 // Individual controls will use OS.CV_CXBORDER (or other) when appropriate 690 690 return 0; 691 //@@TODO(dmik): remove692 // 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);695 691 } 696 692 … … 702 698 if (parent != null) { 703 699 if (parent.pswp != 0) { 704 //@@TODO(dmik): remove705 // int oldHdwp = parent.hdwp;706 // parent.hdwp = 0;707 // OS.EndDeferWindowPos (oldHdwp);708 // int count = parent.getChildrenCount ();709 // parent.hdwp = OS.BeginDeferWindowPos (count);710 700 endDeferWindowPos (parent); 711 701 int count = parent.getChildrenCount (); … … 1427 1417 checkWidget (); 1428 1418 if (!OS.WinIsWindowVisible (handle)) return; 1429 //@@TODO (dmik): remove1430 // int flags = OS.RDW_ERASE | OS.RDW_FRAME | OS.RDW_INVALIDATE;1431 // OS.RedrawWindow (handle, null, 0, flags);1432 1419 //@@TODO(dmik): should we always invalidate children? 1433 1420 OS.WinInvalidateRect (handle, null, false);
Note:
See TracChangeset
for help on using the changeset viewer.