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. How to uniquely identify or distinguish windows that have no window name, same class name and resource id is zero [modified]

How to uniquely identify or distinguish windows that have no window name, same class name and resource id is zero [modified]

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

    Dear all, I have an application that can identify a window. The method in which I worked out is given below. I will store the attributes of the window such as( class name, window caption, resource id etc..) to a file. When the second time , window is up, using the above attributes, I will identify the window. But, I encounter a problem with the above scenario. The problem comes, when the 'window does not have window caption', 'window class name is same' and 'control id is zero'.. I can't use window handle, bcz it will differ when the window is up for the second time. Is there any method to solve this problem? OR Is there any unique attribute to identify the window? Please help, Thanks in advance, George K J

    modified on Monday, September 22, 2008 4:22 AM

    C 1 Reply Last reply
    0
    • G georgekjolly

      Dear all, I have an application that can identify a window. The method in which I worked out is given below. I will store the attributes of the window such as( class name, window caption, resource id etc..) to a file. When the second time , window is up, using the above attributes, I will identify the window. But, I encounter a problem with the above scenario. The problem comes, when the 'window does not have window caption', 'window class name is same' and 'control id is zero'.. I can't use window handle, bcz it will differ when the window is up for the second time. Is there any method to solve this problem? OR Is there any unique attribute to identify the window? Please help, Thanks in advance, George K J

      modified on Monday, September 22, 2008 4:22 AM

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      IMHO there is a logical pitfall in your requirements: processes and executable files are different things. For instance you may have three different instances of your_application.exe running at the same time, the system allows you to differenziate between these three processes, but such a distinction makes sense only at runtime. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      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