Groups | Blog | Home
all groups > dotnet compact framework > october 2005 >

dotnet compact framework : Subclassing


Eric
10/14/2005 12:00:00 AM
hi, this be correct
althrought full .net framwork supports winform subclassing
but .net cf not
you may google by search MessageWindows class

wish this help

Eric

[quoted text, click to view]

Artem_Lyakhov
10/14/2005 7:19:01 AM
Hi,

I need to subclass a form; i.e. I want to catch wm_ messages. I tried to use
::SetWindowLong(hwnd, GWL_WNDPROC, myDelegate) but without succeess: it gives
NotSupportedException at runtime.

Is it possible at all?

--
Alex Yakhnin [MVP]
10/14/2005 10:23:02 AM
The only to way in CF v1 to get window subclassing is using IMessageFiter and
ApplicationEx from SDF:

http://blog.opennetcf.org/ayakhnin/SearchView.aspx?q=pseudo

It gets better with CF v2 that supports delegates as native callbacks:

http://blog.opennetcf.org/ayakhnin/SearchView.aspx?q=NativeWindow

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


[quoted text, click to view]
AddThis Social Bookmark Button