[python-win32] HookMessage fails

TK Soh teekaysoh at gmail.com
Thu May 24 15:42:34 CEST 2007


On 5/23/07, Mark Hammond <mhammond at skippinet.com.au> wrote:
> I think the problem is likely related to the "main frame" issue quoted below.
> I suggest you debug what the app's "main frame" is at any given point in
> time, and confirming the value is still appropriate.

I tried putting this statement in the context menu before calling the
dialog, as well as inside OnInitDialog() of the custom dialog, but
both generate the same errors:

   print "mainframe = ", win32ui.GetMainFrame()

   win32ui: The frame does not exist

I wonder this could be caused by  the fact the my code isn't really an
app, but simply a shell extension. Anything else I should try?


More information about the Python-win32 mailing list