home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
WndProc messages in plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Shukuyen" data-source="post: 305974" data-attributes="member: 74313"><p>Hi,</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>Does anyone here know another way to get the windows messages in a MediaPortal plugin?</p><p>I stumbled over the class NativeWindow, but it needs a windowId to work - same problem as before :-/</p><p></p><p>Thanks,</p><p>Shukuyen.</p></blockquote><p></p>
[QUOTE="Shukuyen, post: 305974, member: 74313"] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
WndProc messages in plugin
Contact us
RSS
Top
Bottom