What is subclassification and API connection?

I'm new to Windows API programming, and I want to know in layman's terms what subclasses and API hooking are. I am doing a project that uses controls drawn by the owner, and I leave two terms. Now I have already seen many detailed CodeProject.com tutorials about these topics, but the problem is that they all use MFC and I am encoding pure Win32. If anyone knows of any good tutorials on the above topics, then please post links. Also try to avoid links to msdn, as newcomers I have problems understanding what is written there.

+3
source share
2 answers

Layman conditions: subclassification is performed by replacing the window procedure of a window. Which redirects the calls that Windows makes to deliver a message to your function window so that you see these messages first. This allows you to change the behavior of the window, giving it new features that the original did not have. This is a very common method and is directly supported by the OS, Microsoft Detours article is an example of the implementation of this technology.

Any of the methods are in the advanced programming category, and you may encounter rather unpleasant problems if you do not do it right. If you have problems reading MSDN articles right now, leave it on a shelf until you are ready for it.

+10
source

raw Win32, , , Petzold " Windows".

+1

All Articles