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. what does "subclassing window" mean?

what does "subclassing window" mean?

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingquestion
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.
  • L Offline
    L Offline
    lobanovski
    wrote on last edited by
    #1

    hi all, i do not get a meaning of this saying "subclass a window", but it's used quite often when i deal with wtl, or any other "tricky stuff"... :( what does this mean??? alex debug - is my life style

    M 1 Reply Last reply
    0
    • L lobanovski

      hi all, i do not get a meaning of this saying "subclass a window", but it's used quite often when i deal with wtl, or any other "tricky stuff"... :( what does this mean??? alex debug - is my life style

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Basically, it means replacing the window's existing window procedure with another one (typically one you've written). This allows you to change certain aspects of the window's behaviour, while passing other events onto the original window procedure. You might do this if, say, you wanted to trap certain keypresses in an edit control, or draw a button differently, but reuse the general behaviour of the control.

      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