|
-
July 21st, 1999, 05:30 AM
#1
Equivalent functinality
what i want to know is for the VB "QueryUnload()" event, what is the equivalent VC++ function or event.
please favour me.....thanks in advance.....
Sheetal
-
July 21st, 1999, 06:50 AM
#2
Re: Equivalent functinality
the WM_CLOSE message or the OnClose method of the CWnd object in MFC is the equivalent.
-
July 22nd, 1999, 03:15 AM
#3
Re: Equivalent functinality
Then what is the eqivilent for "unload"?
I think WM_CLOSE corresponds to "unload" more than "queryunload"?
-
July 22nd, 1999, 03:17 AM
#4
Re: Equivalent functinality
IMHO WM_DESTROY is the equivalent for unload.
But, really, I don't think there are any equivalents only similarities.
-
July 22nd, 1999, 05:25 AM
#5
Re: Equivalent functinality
There is one more Vb Form event Terminate
What about it? Between _Unload and _Treminate the form's member variables still exist and can be accessed by Public member fns.
MSDN says during WM_DESTROY we can still assume that the child windows exist.
Like you said, no one-to-one relation.
The VB events are a level higher than windows events. IMHO, few windows events together constitute one vb event. For ex., There is no direct relation to "Click" event. We have WM_LButtonDown and up and DBLClick and no LBTNCLICK. So vb's processing generates the _click event.
May be when VB process WM_CLOSE it generates both the events _QueryUnload and _Unload, who knows:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|