09-21-2014, 11:35 AM
(09-15-2014, 12:25 AM)Gaxx Wrote: I have finally figured it out. Writing solution here in case someone encounters similar problem. First thing to do is getting parent window handle for custom widget with GetParent() winapi function. Then you should set a new wndprc function with no paint routine for the parent with SetWindowLongPtr() function. You can optionally save old wndprc in case you need to transfer some control to it. And that's it.
This is great news. I was thinking about your issue for a couple days, and was going to suggest overriding the procedures for the HWND (as an attempt at debugging, at the very least). Thanks for posting how you figured it out.