IT Community - Software Programming, Web Development and Technical Support

How to 'connect' up my MessageWindow derived class?

This is a discussion on How to 'connect' up my MessageWindow derived class? within the Mobile Software Development forums, part of the Software Development category; I have a class derived from Microsoft.WindowsCE.Forms and overriding the WndProc method. Can anyone tell me the next ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2007, 03:07 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question How to 'connect' up my MessageWindow derived class?

I have a class derived from Microsoft.WindowsCE.Forms and overriding the WndProc method.

Can anyone tell me the next step to have an instance of this class process the messages for my main application or form?

If that's not clear, I'd like to know how to connect my class so its WndProc method is called for incoming messages.

Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 03:08 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: How to 'connect' up my MessageWindow derived class?

You can't "connect" the WndProc that you get in the MessageWindow with any other windows. Instead, you can either use the NativeWindow class I've implemented long time ago:
Alex Yakhnin or you can use this sample from CF team:

.NET Compact Framework Team : Subclassing controls in .NETCF 2.0, part 1
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect C with DataBase? yuva C and C++ Programming 4 03-21-2008 09:35 PM
Debug class and Trace class simplesabita Software Testing 3 08-18-2007 12:30 AM
Can we inherit the java class in C# class vigneshgets C# Programming 1 08-09-2007 07:42 AM
Is there any way to use keyPressed method of Canvas class in Form class? bluesky Mobile Software Development 1 07-25-2007 06:02 AM
What is super class sub class in error? santoshmalvi Software Testing 1 04-16-2007 01:20 AM


All times are GMT -7. The time now is 10:50 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0