[python-win32] Pywin32+MFC Ok on 7 & Vista, bad on XP

Michel Claveau mc at mclaveau.com
Mon Mar 29 08:16:21 CEST 2010


Hi!

Sorry for the lack of information.

I use win32gui + directAPI (SendMessage).
With differents tests, I found:
  - No problem, if I use dialog (CreateDialogIndirect instead 
CreateWindowEx). But dialog is limited (no NM_CUSTOMDRAW...)
  - No problem, if I do not use any: SetGraphicsMode or SelectObject...DC or 
DrawText ; but I use them almost everywhere.

I can show my code, but it is >100 kB, too big for message.

@-salutations
-- 
Michel Claveau



>>I write several scripts with Pywin32, for work with MFC's windows & some
>>controls.
>>All scripts run good on Windows-7 (32 & 64) and Vista.
>>
>>But, on XP, all windows are white.
>>Labels, fields, treeviews, listviews, images, buttons, etc. are present,
>>but not visible.
>>If I click on buttons ("blind mode"), it run. But everything is hidden by
>the white.
>>
>>Any idea?

>I would hope it was obvious that we can't possibly diagnose anything from 
>this sketchy message  How are you creating windows?  wxPython?  >Tkinter? 
>win32ui?  Direct calls to the API?  Show us your code, and we'll help you 
>find the problem.



More information about the python-win32 mailing list