Stop CFormView from closing

This is a discussion on Stop CFormView from closing within the C++ Programming forums, part of the General Programming Boards category; What message can I intercept to stop a CFormView from closing? I've tried WM_DESTROY and WM_CLOSE, but neither one work....

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    7

    Stop CFormView from closing

    What message can I intercept to stop a CFormView from closing? I've tried WM_DESTROY and WM_CLOSE, but neither one work.

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    WM_CLOSE is called whenever a window closes. Add a breakpoint. Does the framework call OnClose()?

    Kuphryn

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    7

    tried that

    I had already tried that before I posted this thread. The 'OnClose()' function is never called. When I put it in my 'OnDestroy', it stops there, but it's too late and the app closes anyway.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fscanf %s or %d integer input space char stop question...
    By transgalactic2 in forum C Programming
    Replies: 5
    Last Post: 04-14-2009, 10:44 AM
  2. Error stop Http Listener
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-04-2008, 02:14 AM
  3. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  4. when a while loop will stop ?
    By blue_gene in forum C Programming
    Replies: 13
    Last Post: 04-20-2004, 03:45 PM
  5. Telling other applications to stop
    By nickname_changed in forum Windows Programming
    Replies: 11
    Last Post: 09-25-2003, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21