SilverScreen Solid Modeler

The WM_FEED_CHAR Message

The WM_FEED_CHAR Message

Previous topic Next topic  

The WM_FEED_CHAR Message

Previous topic Next topic JavaScript is required for the print function  

SilverPlusEllipse

 

The WM_FEED_CHAR Message

 


WM_FEED_CHAR is a Win32 application message (declared in silver.h) that allows a SilverPlus or SilverEngine developer to return a keycode via inchar or nextkey.

 

Because the DLL window procedure is at the head of the event handling chain, it may fabricate messages and then pass them along to the SilverScreen window procedure. If the message is WM_FEED_CHAR (from silver.h) then the wParam associated with it is passed though to inchar. This is demonstrated in MFDLL, where the IDM_FILE_EXIT command is changed into a WM_FEED_CHAR message with wParam of ESCAPE. The wParam of a WM_FEED_CHAR message is passed through to inchar without translation, so in effect an ESCAPE keystroke is returned to the inchar-calling function. You need not use a predefined keystroke or mouse event with WM_FEED_CHAR, any value will be returned uninterpreted.