Click to See Complete Forum and Search --> : Changing another application window classname


inbugable
January 27th, 2008, 04:16 PM
Hello,

I have a running application which has four windows of a class it registered.
Now using find window I get the handle of the specific one I want from my application (remotely) and I would like to change its class name leaving its functionality. I tought about creating a identical class (copying it) with only the different name and changing the window class to the class I created.
A problam that comes that I can think of is the class class procedure which is a address in the other app and not mine.

Is it possible to change the classname of a window that is already created? If so, could I change it from my app (remotely)?

Thanks.

JohnCz
February 6th, 2008, 07:04 AM
Why would you want to change window’s class?

inbugable
February 8th, 2008, 04:40 AM
Hey again,

Does it really matter?
Because I don't want the other application to have the same class name I'm using and I can't change mine since other applications depend on it.

So it is possible ? how?

Thanks.

JohnCz
February 18th, 2008, 05:01 PM
Hey again,

Does it really matter?
Because I don't want the other application to have the same class name I'm using and I can't change mine since other applications depend on it.

So it is possible ? how?

Thanks.
Yes, it matters.
Are you sure there is a conflict? Even if you register class with CS_GLOBALCLASS class style, class is global for a process and all applications running in this process, unless is registered in a dll and you use special technique to load it into every process.
If each application is running in a different process, there is no need to change anything. Most likely no cange willbe nescessary.
Even if they are running in the same process most likely, classes are application local. CS_GLOBALCLASS style is hardly used.
That why I have asked question. I think you do not have anything t worry about.
Could you explain what element of the windows created using the same classed may be affected and HOW they can affect other window? If you find something peculiar please let us know.