grable #1 Check out the example in this thread, it shows how to replace the windowfunc.Handling WM_DEVICECHANGE