Re: Drag and Drop - a question
- Posted by AndyDrummond May 04, 2011
- 1214 views
The issue is that when the flags parameter is a sequence, such as {}, then win32lib builds a Windows API Flag using only the values inside the sequence. In your case, as there are no values in the sequence, the API flag is set to zero - meaning that there are NO extended flags used.
But when the parameter to createEx() is an atom, it is appended to the the default extended flags, which happens to be WS_EX_ACCEPTFILES for creating Windows.
So, if you define the new window using {WS_EX_ACCEPTFILES} you should get the same result as using just 0.
Derek, and Arthur, you have put your knowledgeable fingers on it! That accounts for the problem I was having, and now (in IDE) I can simply add the WS_EX_ACCEPTFILES to the main window flags. And Bang! That works perfectly!
It is SO nice to crack these problems. When I get a funny I don't understand, I need to get to the bottom of it or I just go on guessing for ever. Ignorance may be bliss but knowledge is a darn sight more blissful!
Thank you all, topic closed.
Andy