RE: [GD-Windows] Handlig Form/Control messages in Windows Forms without ::WndProc(Message *); method
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2003-12-04 17:09:30
|
I see no reason subclassing shouldn't be fine, but I also haven't done it in the specific situation you're mentioning. Try it and let us know what happens :-) Cheers, / h+ -----Original Message----- From: gam...@li... [mailto:gam...@li...]On Behalf Of Jacobo Rodriguez Sent: Thursday, December 04, 2003 8:07 AM To: Gam...@li... Subject: [GD-Windows] Handlig Form/Control messages in Windows Forms without ::WndProc(Message *); method Hello, this is mi first post here, and my english aren't too good, so please forgive my mistakes :) I need to work with the window messages of a control (Form, Button, etc) in Windows Forms, of the .NET framework, and, by design reasons, i can't use ::WndProc(Message *m); .Can i subclass the Form (SetWindowLong(hWnd, GWL_WNDPROC, (LONG)MyNewWndProc); ) without danger? if not, how could i handle the incoming messages to the form/control before they reach to ::WndProc ? Thank You. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555 |