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. Window class, caption

Window class, caption

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

    Suppose there are multiple windows application opens. now I want to know the class and caption of all the open windows application .

    Trioum

    E D T 3 Replies Last reply
    0
    • T trioum

      Suppose there are multiple windows application opens. now I want to know the class and caption of all the open windows application .

      Trioum

      E Offline
      E Offline
      Eugen Podsypalnikov
      wrote on last edited by
      #2

      It could be your start point[^] :)

      virtual void BeHappy() = 0;

      T 1 Reply Last reply
      0
      • E Eugen Podsypalnikov

        It could be your start point[^] :)

        virtual void BeHappy() = 0;

        T Offline
        T Offline
        trioum
        wrote on last edited by
        #3

        But How Can I get the class and Caption programmatically

        Trioum

        E 1 Reply Last reply
        0
        • T trioum

          Suppose there are multiple windows application opens. now I want to know the class and caption of all the open windows application .

          Trioum

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Have you tried EnumWindows()?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          1 Reply Last reply
          0
          • T trioum

            But How Can I get the class and Caption programmatically

            Trioum

            E Offline
            E Offline
            Eugen Podsypalnikov
            wrote on last edited by
            #5

            For each iterated window you could use the GetClassName(..) and GetWindowText(..) functions :)

            virtual void BeHappy() = 0;

            1 Reply Last reply
            0
            • T trioum

              Suppose there are multiple windows application opens. now I want to know the class and caption of all the open windows application .

              Trioum

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              loop for FindWindowEx, there is very good example of same in MSDN!

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
              Never mind - my own stupidity is the source of every "problem" - Mixture

              cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

              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