Changeset 5 for Common/SuspendDrawing.cs


Ignore:
Timestamp:
Mar 7, 2019, 3:50:35 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Updated common files from projects.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/SuspendDrawing.cs

    r1 r5  
    1616        public static void Suspend(Control parent)
    1717        {
    18             SendMessage(parent.Handle, WM_SETREDRAW, false, 0);
     18            if (parent.Visible) SendMessage(parent.Handle, WM_SETREDRAW, false, 0);
    1919        }
    2020
    2121        public static void Resume(Control parent)
    2222        {
    23             SendMessage(parent.Handle, WM_SETREDRAW, true, 0);
     23            if (parent.Visible) SendMessage(parent.Handle, WM_SETREDRAW, true, 0);
    2424            parent.Refresh();
    2525        }
Note: See TracChangeset for help on using the changeset viewer.