Mark Hammond wrote: >>> I don't see the parent being passed into the dialogs in pywin32's >>> sample code. Is this going to be a problem? >>> >> Well, in looking at the code, I don't even see a way to >> specify one, so >> this seems to have been a rat hole. >> >> I'm mildly surprised by that. The CreateDialog APIs all take >> a "parent" >> window, and the parentage plays a part in determining window stacking >> and taskbar presence. I wonder what the win32ui code uses for that... >> > > This is the magic of MFC - if no parent is specified, the "main window" for > the application is automatically used. >
Isn't that the issue, then? He's writing a dialog to plug in to Explorer, and every time he runs, there's a different "main window". MFC gets its concept of a "main window" from its global state, so unless something in the process tells MFC to refresh its global state, it will have stale information. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32