Re: Overriding WndProc in custom TextBox

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Paul G. Tobey [eMVP] (ptobey)
Date: 09/02/04


Date: Thu, 2 Sep 2004 08:31:58 -0700

Your code is not an application? Are you building a library for other
applications to use?

Paul T.

"PeterB" <peter@data.se> wrote in message
news:udk7nxOkEHA.2412@TK2MSFTNGP15.phx.gbl...
> Well... it's not an application, so using ApplicationEx (which is a great
> asset though) is not an option :-)
>
> What I want to do is capture the WM_PASTE message to prevent pasting to
> the
> textbox, any suggestions on how this could be done without overriding
> WndProc?
>
> regards,
>
> Peter
>
>
> "Peter Foot [MVP]" <feedback@nospam-inthehand.com> skrev i meddelandet
> news:%23%23YWUSOkEHA.1356@TK2MSFTNGP09.phx.gbl...
>> You cannot override the WndProc in the Compact Framework. You can use the
>> Smart Device Framework ApplicationEx object to implement an
>> IMessageFilter
>> to capture incoming windows messages for your application.
>> www.opennetcf.org/sdf/
>>
>> Peter
>>
>> --
>> Peter Foot
>> Windows Embedded MVP
>> www.inthehand.com | www.opennetcf.org
>>
>> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
>> Embedded newsgroups? Let us know!
>> https://www.windowsembeddedeval.com/community/newsgroups
>>
>> "PeterB" <peter@data.se> wrote in message
>> news:uvgVdKOkEHA.2812@tk2msftngp13.phx.gbl...
>> > Hi!
>> >
>> > I'm trying to override WndProc( ref Message m) in my custom TextBox
>> > control.
>> > Unfortunately it seems like the System.Windows.Forms.Message class is
> not
>> > available in CF. Is there a was to reference this class anyway?
>> >
>> > I tried referencing Microsoft.WindowsCE.Forms but I get the following
>> > compile error:
>> > WndProc(ref Microsoft.WindowsCE.Forms.Message)': no suitable method
> found
>> > to
>> > override
>> >
>> > I am not sure whether it is impossible to override the WndProc method
>> > in
>> > this context or if I'm just using the wrong Message definition.
>> >
>> > Ideas?
>> >
>> > Thanks!
>> >
>> > / Peter
>> >
>> >
>>
>>
>
>



Relevant Pages

  • Developing NDIS driver for XP, starting help
    ... socket level capture and redirection, ... of applications, particularly MS applications and ... windows is the better way to go now. ...
    (microsoft.public.development.device.drivers)
  • Screen OCR SDK Library 5.5
    ... from Windows screen, under the control of another program. ... You can capture text from any part of any window including: ... Screen OCR SDK is OCR based solution, ... Support different popular applications such as Office applications, ...
    (comp.software.shareware.announce)
  • How to capture a Live Internet audio stream ?
    ... I seem to recall that I've read about some applications for both Mac ... and Windows that let you capture a streaming audio source to a file so ...
    (rec.audio.pro)
  • How to capture a Live Internet audio stream ?
    ... I seem to recall that I've read about some applications for both Mac ... and Windows that let you capture a streaming audio source to a file so ...
    (rec.audio.misc)
  • Re: Recoverd mahine from SP2 nightmare
    ... It contains advice ... using Windows XP "prettifications". ... applications you do not use. ... You should at least turn on the built in firewall. ...
    (microsoft.public.windowsupdate)