Paltalk color apis

You can talk about VB programming here

Postby BattleStar-Galactica » Thu Aug 31, 2006 9:46 pm


yep his trick work but try new thing, Departure thing 8)

subclassing a remote control is fun, try it you will see programming is fun too and new headache :D
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby locohacker » Fri Sep 01, 2006 6:50 am

Aigh i could try to figure it out but will departure way be better or just less code :)

Tha's my last quesiton I promise :lol:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4364
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Fri Sep 01, 2006 7:50 am

I dont know his code like he said just one line of code, but subclassing if you dont do it well, it will crash your app easy.


do you understand sp trick?, U have to modify a little bit his code to get what you want.

man ask many questions if you want, we're just discussing :) but where is Departure???
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby Departure » Fri Sep 01, 2006 9:59 am

i used consts

Code: Select all
Const GW_Child As Long = 5


example:

blahh2 = FindWindowEx(blahh1 , 0& , wtl_Splitterwindow , vbnullstring)
blahh3 = GetWindow(Blahh2 , GW_Child) 'This is normally where the atl### control is


I came across this consts by mistake, I was originally researching some other API's and found this little gem, I found a few others also, danmm there are a lot of APi's that are not knowen very much.

What this pretty much does , is it will get the child control of wtl_Splitterwindow, and ofcause the child control of wtl_Splitterwindow is ATL#####, So in other words it will get the unknowen handel to the child control (hope that makes sence)

the exmple above is not real code i just typed it off the top of my head for an example, but you get the idea and you know the rest of the code needed to complete your own function for paltalk

If you want i'll post an example code
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby BattleStar-Galactica » Fri Sep 01, 2006 11:00 am

do you get it loco? 8)
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby locohacker » Fri Sep 01, 2006 2:27 pm

lol ah :shock: hehe man can u post the example code i give ya full credit :lol:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4364
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Sat Sep 02, 2006 6:02 pm

read this post loco

[url]
http://www.imfiles.com/paltalk/get-p ... t2139.html
[/url]

you will find the solution yourself 8)
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby locohacker » Sun Sep 03, 2006 8:45 am

aigh, i gonna give it a shot :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4364
Joined: Fri Dec 31, 2004 6:59 pm

Postby Departure » Sun Sep 03, 2006 4:52 pm

ATL = FindWindow("My Window Class", PTRoom)
ATL = FindWindowEx(ATL, 0, "WTL_SplitterWindow", vbNullString)
ATL = FindWindowEx(ATL, 0, "WTL_SplitterWindow", vbNullString)
ATL = FindWindowEx(ATL, 0, "WTL_SplitterWindow", vbNullString)
ATL = GetWindow(ATL , GW_Child) ' this is normally where you would have ATL = FindWindowEx(ATL , 0 , "Atl:0987374" ) what ever....

im not sure how much more easyer i can explain it locohacker, but ill post a working code tonight when i get home...

and then ofcause you continue to subclass down to the richedit20a
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby locohacker » Mon Sep 04, 2006 8:57 am

alrighty then let me try again cause i try sp i cant make it work so far :roll:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4364
Joined: Fri Dec 31, 2004 6:59 pm

Postby BattleStar-Galactica » Mon Sep 04, 2006 3:46 pm

nope sp code does not get the right altxxx for your programm, his code is just an example.


check the constant GW_Child and other one GW_HWNDNEXT

GW_Child get the child of your current window handle

GW_HWNDNEXT get the next window of your current window handle, these two constants allow you to list all window child 8) with a recursive function
User avatar
BattleStar-Galactica
imFiles Master
imFiles Master
 
Posts: 565
Joined: Tue Sep 20, 2005 12:19 am
Location: safest place to hide

Postby Departure » Mon Sep 04, 2006 5:19 pm

spot on namomachine
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Previous

Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

cron