pierre baral wrote:
> ARGH, too bad :)
>
> Does anyone know a message which is send only one time during the life
> of an application, just after the createwindow call? ;-p
WM_ACTIVATE is sent when your application becomes the topmost app. You
can use a global to do something the first time you s
ARGH, too bad :)
Does anyone know a message which is send only one time during the life of
an application, just after the createwindow call? ;-p
2012/1/13 Amaury Forgeot d'Arc
> Hi,
>
> 2012/1/13 pierre baral
>
>> and on my Windows, the message WM_CREATE is never sent.
>> That's not the case
Hi,
2012/1/13 pierre baral
> and on my Windows, the message WM_CREATE is never sent.
> That's not the case for the others messages which are correctly called but
> not WM_CREATE
I found an answer from 2005 :-)
http://grokbase.com/t/python.org/python-win32/2005/04/python-win32-cant-catch-wm-cre
I have tried a lot of code found on the net such as the following:
http://pastebin.com/raw.php?i=a19kZMeQ
or also the following code:
*import win32gui, win32con*
*def wndProc(hwnd, msg, wParam, lParam):
if msg == win32con.WM_CREATE: print 'message: WM_CREATE'
if msg == win32con.WM_SIZE: