dave@wucs1.wustl.edu (David T Mitchell III) (01/21/91)
[ Anybody willing to send me (or post) one of their custom controls? A comlete example would be really useful. ] Either way, can anyone answer these two questions? 1. Handling a WM_SETTEXT should set the control's text pointer to (LPSTR)lParam. Looking at DefWindowProc included in the SDK, they do a call to DefSetText which I assume does this. WM_GETTEXT returns a copy of hwnd->hName. My question is, how does my custom control get access (read and write) to hName, the control's text pointer? 2. General question: Is there some way I can use subclassing to trap messages of normal controls? In other words, can I create a new class and end it with a CallWindowProc to a standard class' window proc? (Example: Create a windowclass with a cross cursor, check for WM_RBUTTONDOWN, and otherwise handle everything as if it were a "static" control). I've tried several times, but keep getting unrecov app errs. thanks, dave dave@wucs1.wustl.edu