>>>Thanks again. In thinking about it, QueryUnload() may not fire in this case. WM_CLOSE causes DestroyWindow() to execute. For some reason I also thought that a WM_QUERYENDSESSION might be issued and might cause QueryUnload() to fire.
>>
>>It looks like this message is generated only when the current user wants to exit windows not shutdown an application. Although, it probably does propagate the QueryUnload at that time.
>
>Yeah, I'd forgotten that until I went back and RTFM.< vbg >
I wasn't going to say that. I think Ed has that phrase trade marked by now! < gd&rfE >
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao