MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2008-09-19, 10:35   #1 (permalink)
Portal Member
 
Join Date: May 2008
Posts: 31
Thanks: 8
Thanked 0 Times in 0 Posts

My System

Default WndProc messages in plugin

Hi,

I am trying to develop a plugin but ran into some problems. I want to listen to events dispatched by windows via the windows message queue. Normally in WindowsForms applications this could be done by overriding the WndProc function. As the plugin is a DLL my class is not derived from System.Windows.Forms.Form therefor I don't have a WndProc function to override.

I tried to just add a class derived from Form, but the message queue won't be available until I show the form. As you know, that is not possible.

Does anyone here know another way to get the windows messages in a MediaPortal plugin?
I stumbled over the class NativeWindow, but it needs a windowId to work - same problem as before :-/

Thanks,
Shukuyen.
Shukuyen is offline   Reply With Quote
Reply

Bookmarks

Tags
messages, plugin, wndproc

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Local Messages Display tribexa Skins and Plugins Installer (MPI) 0 2008-01-17 17:55
Scrambled channel messages GagReflex pre 1.0 RC1 0 2007-02-16 09:55
More messages in the Plugin Infrastructure joboehl Improvement Suggestions 3 2006-11-04 20:25
Controlling mediaportal with messages milanp General Support 10 2006-08-14 14:32
Clan Messages Reader plugin...generic layout for every skin? BigCheese Plugins 6 2006-02-16 00:33


All times are GMT +1. The time now is 06:10.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden