6/02/2013

When computer is locked in XP, proceeding redrawing.

During the time that computer is locked in XP, if application's size is altered or do other drawing work, these works will not reflect after the computer is unlocked. Although, it will be changed in Vista or Win 7.

In normal case, it will be solved by managing WM_ACTIVEAPP, but during the time, through executing other program + altering size + redrawing, if z-order is changed, unfortunately other program will be received WM_ACTIVEAPP.

Therefore, the most effective soluting is to manage WM_WCSSESSION_CHANGE.
After checking the WPARAM value of the message is WTS_SESSION_UNLOCK,  doing redraw will be solved this issue.

No comments:

Post a Comment