forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Change the CLASS of a non VDS program

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Mar 30, 2004 7:03 pm    Post subject: Change the CLASS of a non VDS program Reply with quote

Is there a way to change the class of a non vds app?
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Mar 30, 2004 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Mar 30, 2004 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Tue Mar 30, 2004 8:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Mar 30, 2004 8:33 pm    Post subject: Reply with quote

Humm, that sounds like that might work. We'll see if he can add that.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Mar 31, 2004 3:27 pm    Post subject: Reply with quote

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 Smile

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Mar 31, 2004 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Mar 31, 2004 3:54 pm    Post subject: Reply with quote

Maybe you can set the title of the browser to another? Or maybe you can place another element on the BrowserBob dialog, so you can find your own window by that one? Rolling Eyes
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Mar 31, 2004 4:08 pm    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group