| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Mar 30, 2004 7:03 pm Post subject: Change the CLASS of a non VDS program |
|
|
Is there a way to change the class of a non vds app? _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Mar 30, 2004 7:30 pm Post subject: |
|
|
I don't believe there is.. can change just about everything else about the window but that.
Note: I'm assuming you mean the actual classname, for the class info(background brush, cursor, styles etc.) you can use SetClassLong or SetWindowLong. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Mar 30, 2004 7:37 pm Post subject: |
|
|
Yeah, the actual classname. I didn't think it could be done, but, I thought I'd ask. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Mar 30, 2004 8:30 pm Post subject: |
|
|
Liquidcode,
While you cannot change the base classes of a window class. You can sub-class a window and register that as a new class. This will allow you to give the new sub-classed window a different class name. I had asked CodeScript if he could make this possible with his VDSGUI DLL. He said he would check into it. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Mar 30, 2004 8:33 pm Post subject: |
|
|
Humm, that sounds like that might work. We'll see if he can add that. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Mar 31, 2004 3:27 pm Post subject: |
|
|
A class once registered cannot be changed. However you can subclass a base class and add features to it - that's what most of VDSGUI and in fact most VDS extensions/runtime does. Also it is possible to superclass a window (all(most) dialog elements are "windows" ) and give it a new classname too.
Once U do that controlling the apperance and funtion of that "window" rests with you. So doing that on a element on a foreign app is almost out of question (if one really want's he can inject a dll into the process space etc - but tooo complicated)
I am currently too busy to try that - though if U tell me what exactly U R looking for - I can add it to - to do list of my dll  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Mar 31, 2004 3:38 pm Post subject: |
|
|
I am using a Browser/Weblacation program called BrowserBob (very cool) and the class of the browser (and all child windows of that browser) is ALWAYS #TBBBuilder. I want to be able to control MY exe without effecting other BrowserBob browsers (if any) that are running in the users computer. Like if I Window Send, #TBBBuilder, text I want it to send the text to my app and not alother BB app with that class. That is why I wanted to know if I could change the class name. If I can sub class the window (if I am understanding right) I'll be able to send text (or whatever) and control it without effecting other browser windows. Follow me? _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Mar 31, 2004 4:08 pm Post subject: |
|
|
| Quote: | | If I can sub class the window |
Foreign window subclassing is more than a trivial thing - one of the last things in Windows programming and it doesnt serve Ur purpose either.
I think U can shellexecute the browserbob app and obtain it's window handle. I think earlier on we talked about similar thing by obtaining the path to the executable of a running app. Now U can set text to any of it's child windows - I think U know the required APIs for that if not VDS itself.
May be skit's suggestion above also may help in that direction _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|