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. How to close the window?

How to close the window?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpvisual-studiohelptutorial
2 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.
  • N Offline
    N Offline
    Nikesh Jagtap
    wrote on last edited by
    #1

    I am using Microsoft Visual Studio 6.00. I have created an MDI application. In that I am creating new window. I want functionality as after left clicking of mouse on view that window should be closed. So how can I sort out this problem? Thanks in advance Nikesh

    S 1 Reply Last reply
    0
    • N Nikesh Jagtap

      I am using Microsoft Visual Studio 6.00. I have created an MDI application. In that I am creating new window. I want functionality as after left clicking of mouse on view that window should be closed. So how can I sort out this problem? Thanks in advance Nikesh

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      1. Call frame window's DestroyWindow function 2. Send WM_CLOSE message to your frame window handle 3. DestroyWindow with frame window handle 4. PostQuitMessage with exit code. You may need to take care about the data in the child window.

      -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

      My blog - Sharing My Thoughts

      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