Skip to content

Instantly share code, notes, and snippets.

@hborders
Created June 16, 2013 05:29
Show Gist options
  • Save hborders/5790878 to your computer and use it in GitHub Desktop.
Save hborders/5790878 to your computer and use it in GitHub Desktop.
These comments are all over the SWT source. SWT provides common behavior across many different native GUIs. This means they need to work around unintuitive behavior or bugs on different systems.
/*
* Bug in Windows. Under certain cirumstances yet to be
* isolated, BCM_SETIMAGELIST does not redraw the control
* when a new image is set. The fix is to force a redraw.
*/
OS.InvalidateRect (handle, null, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment