article

What is Subclassing in a few words

Email
Submitted on: 1/24/2015 5:50:00 PM
By: Trevor Herselman (from psc cd)  
Level: Beginner
User Rating: By 4 Users
Compatibility: VB 6.0
Views: 516
 
     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 ...

 
				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


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.