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. Property Page OnNotify question

Property Page OnNotify question

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabase
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
    skinnyreptile
    wrote on last edited by
    #1

    I construct a propery page which I added OnActive() and OnKillActive() by class wizard. When I added OnNotify() to the class, I have not received message to trigger OnActive() and OnKillActive() anymore. Is there anyway to both functions triggered even I use OnNotify()?

    V 1 Reply Last reply
    0
    • S skinnyreptile

      I construct a propery page which I added OnActive() and OnKillActive() by class wizard. When I added OnNotify() to the class, I have not received message to trigger OnActive() and OnKillActive() anymore. Is there anyway to both functions triggered even I use OnNotify()?

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      What messages does the program process in OnNotify()? I suspect that the message gets destroy inside OnNotify(). Kuphryn

      S 1 Reply Last reply
      0
      • V valikac

        What messages does the program process in OnNotify()? I suspect that the message gets destroy inside OnNotify(). Kuphryn

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

        All I did is I tried to detect right mouse click on richedit control located on my property page. It shoudn't intercept both OnSetActive() and OnKillActive() messages. Please let me know if I did something wrong here. BOOL CPropertyPage::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { MSGFILTER * lpMsgFilter = (MSGFILTER *)lParam; if ((wParam == IDC_RICHEDIT1) && (lpMsgFilter->nmhdr.code == EN_MSGFILTER)&& (lpMsgFilter->msg == WM_RBUTTONDOWN)) { . . . . } return CDialog::OnNotify(wParam, lParam, pResult); }

        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