SilverScreen Solid Modeler

Window Subclassing

Window Subclassing

Previous topic Next topic  

Window Subclassing

Previous topic Next topic JavaScript is required for the print function  

SilverPlusEllipse

 

Window Subclassing

 


In Windows, the technique of window subclassing is used to intercept and perhaps filter Windows messages before they arrive at a particular window. When you subclass a Windows window, you are placing a new window procedure at the head of a chain of window procedures for that window.

 

In SilverScreen, we have designed our internal architecture so that the main frame and view windows may be subclassed safely by the DLL developer. Since Windows menus and toolbars generate WM_COMMANDs, and the only way to get your hands on what WM_COMMANDs are generated is to receive them in a window procedure, you will very likely wish do this subclassing.

 

The SilverPlus sample MFDLL included in the developer's distribution provides an example of how to go about subclassing both the main frame and the view windows.