What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!)

[Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!)
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!)
quote:
Originally posted by deAd
quote:
Originally posted by CookieRevised
Isn't the reason you want to subclass something because you need to catch just a certain message? I don't see why you would want to catch all possible messages there are, that would be useless (unless you make a Windows Message Spying program).
Yes, but you have to send the messages you don't want back to the original windowproc. You can't do this with a Plus! window because you only have control over the messages you ask for.
But aren't all other messages already forwarded to the original WinProc by Plus!?

Though I know this wouldn't work in all situations either though, and it is a bit of a dirty method. But I think this might be possible for specific things

EDIT: Plus! doesn't know the original WinProc, that would of course be the reason, no?


quote:
Originally posted by Patchou
As for using GetCallbackPtr with SetWindowLong: don't. The documentation specifically mentions that this function can only be used for synchronous calls. If you make a script that defys this rule, it may work at first but the combination of several scripts will certainely cause unexpected results / crashes.
I know this would be a lot to ask, but can you explain this in more detail and/or with an example, as I like to understand in much detail why it would cause a crash/unexpected results in some cases.

EDIT: apparently not possible :'( Just had a quick chat with Patchou. In short:
quote:
Originally posted by Patchou
the problem is a technical limitation: for callbacks I dont have much other choice than using static functions in my code so I cant have two scripts using a callback at the same time, which is why they have to be synchronous.
...
Thus right now, calling GetCallbackPtr() many times, from different scripts, will always return the same pointer for a function with a given number of arguments.
...
Meaning two scripts can't subclass any two window at the same time. Even one single script wouldn't be able to subclass two windows with that method.
...
Now, he also gave a hint as in how it would be possible, but that involves asm (which _is_ possible in scripting, but extremely advanced).

This post was edited on 03-29-2008 at 04:24 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-29-2008 03:56 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by phalanxii on 03-27-2008 at 12:05 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by effection on 03-27-2008 at 04:45 PM
RE: RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by phalanxii on 03-28-2008 at 12:47 AM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by CookieRevised on 03-27-2008 at 07:25 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by felipEx on 03-28-2008 at 05:00 AM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by phalanxii on 03-28-2008 at 07:03 AM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by CookieRevised on 03-28-2008 at 04:57 PM
RE: RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by deAd on 03-28-2008 at 06:22 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by CookieRevised on 03-28-2008 at 06:49 PM
RE: RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by deAd on 03-28-2008 at 07:20 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by Patchou on 03-28-2008 at 07:34 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by CookieRevised on 03-29-2008 at 03:56 AM
RE: RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by deAd on 03-29-2008 at 06:17 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by CookieRevised on 03-29-2008 at 07:18 PM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by riahc4 on 03-31-2008 at 12:59 AM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by phalanxii on 04-12-2008 at 12:44 AM
RE: [Resource] Subclassing ActiveXObjects (and [Release] TabbedStatusIcon too!) - by roflmao456 on 04-12-2008 at 02:13 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On