WndProc() as a class member (Win32)

Sometimes, when a Window is declared in its own class, it is useful to associate other members to it and modify them or calling other methods from the WndProc function (for instance after pushing a button) . Nevertheless, since the WndProc is not usually a class member, the only way to do so is by declaring them with a global scope which is not always practical. In this post we will discuss a useful alternative to make the WndProc a method of the window class. Continue reading “WndProc() as a class member (Win32)”

Advertisements