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. FindWindow()

FindWindow()

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

    Hi All,

    HWND FindWindow(LPCTSTR lpClassName,LPCTSTR lpWindowName); 
    

    In this function, how to find the lpClassName for particular dialog. Regards, Anitha

    P _ S 3 Replies Last reply
    0
    • A AnithaSubramani

      Hi All,

      HWND FindWindow(LPCTSTR lpClassName,LPCTSTR lpWindowName); 
      

      In this function, how to find the lpClassName for particular dialog. Regards, Anitha

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      I have found WinSpy++ to be useful in finding class names for particular windows, or you could use CP's own WinSpy, part of a demonstration of code injection into another process. They're especially useful when you want to find the class name for Windows components (such as the task bar, for example). Regards, --Perspx

      "A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year."
      -Andrew Tanenbaum
      "Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer."
      -Fred Brooks

      1 Reply Last reply
      0
      • A AnithaSubramani

        Hi All,

        HWND FindWindow(LPCTSTR lpClassName,LPCTSTR lpWindowName); 
        

        In this function, how to find the lpClassName for particular dialog. Regards, Anitha

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

        GetClassName

        «_Superman_»

        1 Reply Last reply
        0
        • A AnithaSubramani

          Hi All,

          HWND FindWindow(LPCTSTR lpClassName,LPCTSTR lpWindowName); 
          

          In this function, how to find the lpClassName for particular dialog. Regards, Anitha

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          IIRC, all dialogs are of class #32770.

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          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