Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. FormView on close

FormView on close

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sakhalean
    wrote on last edited by
    #1

    Hi all, CFormView::OnClose() ( WM_CLOSE ) event is not coming. Can u tell me the reason?

    H 1 Reply Last reply
    0
    • S Sakhalean

      Hi all, CFormView::OnClose() ( WM_CLOSE ) event is not coming. Can u tell me the reason?

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      CFormView::OnClose() is not called because views do not have a close button. The close button belongs to the frame window, and OnClose() is a message handler for it. You could call something in the view from your frame window OnClose(), or add a message handler in the view for WM_DESTROY (OnDestroy()).

      Best wishes, Hans


      [Hans Dietrich Software]

      S 1 Reply Last reply
      0
      • H Hans Dietrich

        CFormView::OnClose() is not called because views do not have a close button. The close button belongs to the frame window, and OnClose() is a message handler for it. You could call something in the view from your frame window OnClose(), or add a message handler in the view for WM_DESTROY (OnDestroy()).

        Best wishes, Hans


        [Hans Dietrich Software]

        S Offline
        S Offline
        Sakhalean
        wrote on last edited by
        #3

        yes thank you. I have to call OnClose() of View's frame.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups