- This topic has 26 replies, 4 voices, and was last updated 18 years ago by method.
-
AuthorPosts
-
September 1, 2006 at 2:46 am #188518BattleStar-GalacticaMember
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 😀
September 1, 2006 at 11:50 am #188517AdminAdministratorAigh i could try to figure it out but will departure way be better or just less code 🙂
Tha’s my last quesiton I promise 😆
September 1, 2006 at 12:50 pm #188516BattleStar-GalacticaMemberI 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???
September 1, 2006 at 2:59 pm #188515DepartureMemberi used consts
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
September 1, 2006 at 4:00 pm #188514BattleStar-GalacticaMemberdo you get it loco? 8)
September 1, 2006 at 7:27 pm #188513AdminAdministratorlol ah 😯 hehe man can u post the example code i give ya full credit 😆
September 2, 2006 at 11:02 pm #188512BattleStar-GalacticaMemberread this post loco
[url]
[/url]
you will find the solution yourself 8)
September 3, 2006 at 1:45 pm #188511AdminAdministratoraigh, i gonna give it a shot 🙂
September 3, 2006 at 9:52 pm #188510DepartureMemberATL = 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 Admin, but ill post a working code tonight when i get home…
and then ofcause you continue to subclass down to the richedit20a
September 4, 2006 at 1:57 pm #188509AdminAdministratoralrighty then let me try again cause i try sp i cant make it work so far 🙄
September 4, 2006 at 8:46 pm #188508BattleStar-GalacticaMembernope 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
September 4, 2006 at 10:19 pm #188507DepartureMemberspot on namomachine
-
AuthorPosts
Related
- You must be logged in to reply to this topic.