CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Equivalent functinality

    the WM_CLOSE message or the OnClose method of the CWnd object in MFC is the equivalent.


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Equivalent functinality

    Then what is the eqivilent for "unload"?

    I think WM_CLOSE corresponds to "unload" more than "queryunload"?



  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Equivalent functinality

    IMHO WM_DESTROY is the equivalent for unload.
    But, really, I don't think there are any equivalents only similarities.


  5. #5
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    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
  •  





Click Here to Expand Forum to Full Width

Featured