Re: Overriding WndProc in custom TextBox
From: Paul G. Tobey [eMVP] (ptobey)
Date: 09/02/04
- Next message: Paul G. Tobey [eMVP]: "Re: How to prevent power off"
- Previous message: Paul G. Tobey [eMVP]: "Re: Socket Error"
- In reply to: PeterB: "Re: Overriding WndProc in custom TextBox"
- Next in thread: PeterB: "Re: Overriding WndProc in custom TextBox"
- Reply: PeterB: "Re: Overriding WndProc in custom TextBox"
- Messages sorted by: [ date ] [ thread ]
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
>> >
>> >
>>
>>
>
>
- Next message: Paul G. Tobey [eMVP]: "Re: How to prevent power off"
- Previous message: Paul G. Tobey [eMVP]: "Re: Socket Error"
- In reply to: PeterB: "Re: Overriding WndProc in custom TextBox"
- Next in thread: PeterB: "Re: Overriding WndProc in custom TextBox"
- Reply: PeterB: "Re: Overriding WndProc in custom TextBox"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|