DM_ENABLEREDRAW

Far Manager

DM_ENABLEREDRAW

The DM_ENABLEREDRAW message is sent to the dialog manager to enable or disable dialog redrawing.

Param1

TRUE - enable dialog redrawing
FALSE - disable dialog redrawing
-1 - get current state of counter of output locking.

Param2

0

Return

Previous state of counter of output locking.

Remarks

This function is used to prevent excessive dialog redraws when modifying multiple dialog items. Calling this function with Param1 = TRUE increments an internal counter, and calling with Param1 = FALSE decrements the counter. The dialog is drawn when the value of the counter is zero. This is normal behavior for embedded manipulations. Typical usage:
Info.SendDlgMessage(hDlg,DM_ENABLEREDRAW,FALSE,0);

// here we change lots of headers

Info.SendDlgMessage(hDlg,DM_ENABLEREDRAW,TRUE,0);
See also: