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. Any error in my code! [modified]

Any error in my code! [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • S Offline
    S Offline
    ShaluMalu
    wrote on last edited by
    #1

    Hi everybody! I wrote a code to display a messagebox when WM_QUERYENDSESSION message is posted.This is the code i wrote! bool CMainWnd::OnQueryEndSession() { MessageBox(NULL,"QueryEndSession message is posted",MB_OK); } Is this correct! I expected to get a messagebox when i wanted to logoff the system. But it didnt work!Is anything wrong with my code!If so,I humbly request you to respond me! Thanks in advance! Regards Shalini -- modified at 6:55 Friday 2nd March, 2007

    P 1 Reply Last reply
    0
    • S ShaluMalu

      Hi everybody! I wrote a code to display a messagebox when WM_QUERYENDSESSION message is posted.This is the code i wrote! bool CMainWnd::OnQueryEndSession() { MessageBox(NULL,"QueryEndSession message is posted",MB_OK); } Is this correct! I expected to get a messagebox when i wanted to logoff the system. But it didnt work!Is anything wrong with my code!If so,I humbly request you to respond me! Thanks in advance! Regards Shalini -- modified at 6:55 Friday 2nd March, 2007

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      ShaluMalu wrote:

      Is anything wrong with my code

      No. Are yo sure ON_WM_QUERYENDSESSION() is there is message map.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      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