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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Why does not Command Prompt window have WndProc ?

Why does not Command Prompt window have WndProc ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • K Offline
    K Offline
    Ky Nam
    wrote on last edited by
    #1

    Hi I need to subclass Command Prompt window but CP window's WndProc is Zero , therefore i can not call DefWndProc I do subclassing window using global hook Thanks for your ideas

    J 1 Reply Last reply
    0
    • K Ky Nam

      Hi I need to subclass Command Prompt window but CP window's WndProc is Zero , therefore i can not call DefWndProc I do subclassing window using global hook Thanks for your ideas

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      There is no windows message loop for command prompt applications, so no message queue and no routing of messages to a WndProc. You could use a hidden window though. What are you trying to do ?


      Jonathan Wilkes Darka[Xanya.net]

      K 1 Reply Last reply
      0
      • J Jonathan Darka

        There is no windows message loop for command prompt applications, so no message queue and no routing of messages to a WndProc. You could use a hidden window though. What are you trying to do ?


        Jonathan Wilkes Darka[Xanya.net]

        K Offline
        K Offline
        Ky Nam
        wrote on last edited by
        #3

        I mean window of CMD.exe , i think CMD.exe is a window application , it has window handle , window class , ... , an program can use most of window related functions with Command Prompt window I use global hook to subclass all top-level windows , in their subclassed WndProc i will send useful messages to main program written in .NET , main program will do something such as : adding title button + system menu , managing window . Would you like to try it ?

        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