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. DefWindowPro() [modified]

DefWindowPro() [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++
4 Posts 4 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
    sam_psycho
    wrote on last edited by
    #1

    Hi, Can I override DefWindowPro() in my MFC application, plz give me hint or steps to do this.

    modified on Monday, March 16, 2009 4:49 AM

    _ H E 3 Replies Last reply
    0
    • S sam_psycho

      Hi, Can I override DefWindowPro() in my MFC application, plz give me hint or steps to do this.

      modified on Monday, March 16, 2009 4:49 AM

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      I'm sure you mean override. The signature of the DefWindowProc function of the CWnd class is as follows

      virtual LRESULT DefWindowProc(
      UINT message,
      WPARAM wParam,
      LPARAM lParam
      );

      So you simply create a function with the same name in your class that is derived from CWnd.

      «_Superman_» I love work. It gives me something to do between weekends.

      1 Reply Last reply
      0
      • S sam_psycho

        Hi, Can I override DefWindowPro() in my MFC application, plz give me hint or steps to do this.

        modified on Monday, March 16, 2009 4:49 AM

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        Overwrite?

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        1 Reply Last reply
        0
        • S sam_psycho

          Hi, Can I override DefWindowPro() in my MFC application, plz give me hint or steps to do this.

          modified on Monday, March 16, 2009 4:49 AM

          E Offline
          E Offline
          Eytukan
          wrote on last edited by
          #4

          Btw, why would someone need to intercept DefWindowPro() ? :~

          He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus

          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