Advertisement
Java_Volume1 Windows System Services #89565

What is Subclassing in a few words

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 ...

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
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
Original Comments (3)
Recovered from Wayback Machine