Changeset 5 for Common/SuspendDrawing.cs
- Timestamp:
- Mar 7, 2019, 3:50:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/SuspendDrawing.cs
r1 r5 16 16 public static void Suspend(Control parent) 17 17 { 18 SendMessage(parent.Handle, WM_SETREDRAW, false, 0);18 if (parent.Visible) SendMessage(parent.Handle, WM_SETREDRAW, false, 0); 19 19 } 20 20 21 21 public static void Resume(Control parent) 22 22 { 23 SendMessage(parent.Handle, WM_SETREDRAW, true, 0);23 if (parent.Visible) SendMessage(parent.Handle, WM_SETREDRAW, true, 0); 24 24 parent.Refresh(); 25 25 }
Note:
See TracChangeset
for help on using the changeset viewer.