Re: taskmodal messagebox implementation, take 3

2004-11-14 Thread Juan Lang
--- Ivan Leo Puoti <[EMAIL PROTECTED]> wrote: > Well, your code works, and I've made it into a patch. Cool. > Due to my lame webmail client you code arrived with no indentation, so > in the future please attach any code you send to me. D'oh. Okay. > If you think the attached patch is OK I'll f

Re: taskmodal messagebox implementation, take 3

2004-11-14 Thread Ivan Leo Puoti
> No problem. I'll give a lengthy reply in the hope it can help other folks > dealing with this sort of thing too. Well, your code works, and I've made it into a patch. I've also removed what I beleive is a useless if check from MSGBOX_OnInit(). Due to my lame webmail client you code arrived with

Re: taskmodal messagebox implementation, take 3

2004-11-14 Thread Juan Lang
Hi Ivan. --- Ivan Leo Puoti <[EMAIL PROTECTED]> wrote: > Please consider I'm no programming wiz and I'm learning as I go along. No problem. I'll give a lengthy reply in the hope it can help other folks dealing with this sort of thing too. > Now, I don't see how else I could get MSGBOX_EnumProc(

Re: taskmodal messagebox implementation, take 3

2004-11-13 Thread Juan Lang
Ivan, a couple comments on this. You wrote: +BOOL CALLBACK MSGBOX_EnumProc(HWND hwnd, LPARAM lParam) +{ +static int counter1, counter2, heapcheck=0; +static HWND *handles; static variables aren't thread safe. Two threads attempting to do task modal dialogs (yes, this is probably strange)