Re: Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-29 Thread Eko palypse
Hello Eryk, thank you for your interest in my problem and you've nailed it, the problem was solved by putting all Windows API definitions in a separate module and making sure that I only use WinDLL. I would never have thought of that, because I only used WinDLL in this module. But a PostMessage in

Re: Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-29 Thread Eryk Sun
On 7/28/20, Eko palypse wrote: > > Now when I get this error the message I receive in this situation is always > like this. > > hWnd=197364, msg=20, wParam=*18446744072652653190*, lParam=0 > > Traceback (most recent call last): > File "_ctypes/callbacks.c", line 237, in 'calling callback functio

Windows and Subclassing - 'OverflowError': int too long to convert

2020-07-28 Thread Eko palypse
Hello, I am subclassing a scintilla window and it happens every now and then that I get an OverflowError. I've logged the message and could narrow down that it is a single windows message which causes this trouble. It's WM_ERASEBKGND. Now the confusing part for me is the following. According to MS