VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



What is Subclassing in a few words

by Trevor Herselman (4 Submissions)
Category: Windows System Services
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

I asked John Galanopoulos to explain sub classing in a few words ... I liked his reply which follows ... I take no credit for this and I'm only posting this as credit to him ...

Rate What is Subclassing in a few words

Windows sends messages to programs, windows, objects etc for notification purposes. For example when power state changes windows sends a signal to all running processes that there's been a change on the power status. The programs who use subclassing change their behaviour according to this signal. For example MS Word, saves all open files, so in case of an unexpected power down, the user won't loose the opened documents. Another example : When memory starts to run out, Windows sends a WM_COMPACTING signal to all windows loaded. If they use subclassing, they start to free as much memory as they can. So in general, subclassing is a method to receive windows messages.
check out this link also.. it might help you out a bit
http://www.1vbstreet.com/vb/scripts/ShowCode.asp?txtCodeId=34112&lngWId=1

Download this snippet    Add to My Saved Code

What is Subclassing in a few words Comments

No comments have been posted about What is Subclassing in a few words. Why not be the first to post a comment about What is Subclassing in a few words.

Post your comment

Subject:
Message:
0/1000 characters