Click here to Skip to main content
15,909,827 members
Home / Discussions / C#
   

C#

 
Questionhooking??? Pin
10-Jun-04 22:32
suss10-Jun-04 22:32 
AnswerRe: hooking??? Pin
Stefan Troschuetz10-Jun-04 23:15
Stefan Troschuetz10-Jun-04 23:15 
AnswerRe: hooking??? Pin
leppie11-Jun-04 7:20
leppie11-Jun-04 7:20 
General.Net Remoting Problem Pin
Member 33502210-Jun-04 22:14
Member 33502210-Jun-04 22:14 
GeneralRe: .Net Remoting Problem Pin
Stefan Troschuetz10-Jun-04 22:52
Stefan Troschuetz10-Jun-04 22:52 
GeneralRe: .Net Remoting Problem Pin
Heath Stewart11-Jun-04 4:07
protectorHeath Stewart11-Jun-04 4:07 
QuestionMouseEvent? Pin
thomasa10-Jun-04 21:20
thomasa10-Jun-04 21:20 
AnswerRe: MouseEvent? Pin
Heath Stewart11-Jun-04 4:06
protectorHeath Stewart11-Jun-04 4:06 
Because the video window has it's own message queue that is not seen and, therefore, not handled by the .NET Framework SDK.

In order to "see" the messages, you have to use the put_MessageDrain method or set the MessageDrain property (depending on how the typelib importer defined it) to your Handle property, which is your HWND, or a handle to a window. This will route all messages to your window class.

Because the Panel is a container control, it will not check the target HWND for a message. According to the documentation for the IVideoWindow::put_MessageDrain method, it uses the standard Windows messages such as WM_LBUTTONDOWN, so the Panel should fire the MouseDown event, as well as other events fired because of Windows messages.

 

Microsoft MVP, Visual C#
My Articles
GeneralC# define Pin
misterbear10-Jun-04 20:56
misterbear10-Jun-04 20:56 
GeneralRe: C# define Pin
Mazdak10-Jun-04 21:37
Mazdak10-Jun-04 21:37 
GeneralRe: C# define Pin
Colin Angus Mackay11-Jun-04 3:55
Colin Angus Mackay11-Jun-04 3:55 
GeneralSending and Receiving Data Pin
10-Jun-04 20:50
suss10-Jun-04 20:50 
GeneralRe: Sending and Receiving Data Pin
Heath Stewart11-Jun-04 3:58
protectorHeath Stewart11-Jun-04 3:58 
GeneralRe: Sending and Receiving Data Pin
Richard Beacroft11-Jun-04 6:55
Richard Beacroft11-Jun-04 6:55 
GeneralAny Idea Pin
sreejith ss nair10-Jun-04 20:29
sreejith ss nair10-Jun-04 20:29 
GeneralRe: Any Idea Pin
Corinna John10-Jun-04 23:13
Corinna John10-Jun-04 23:13 
GeneralRe: Any Idea Pin
Heath Stewart11-Jun-04 3:47
protectorHeath Stewart11-Jun-04 3:47 
GeneralChanging the look of a row of datagrid on mouseover Pin
rajeev_mr10-Jun-04 19:34
rajeev_mr10-Jun-04 19:34 
GeneralRe: Changing the look of a row of datagrid on mouseover Pin
Heath Stewart11-Jun-04 3:45
protectorHeath Stewart11-Jun-04 3:45 
GeneralXML Serialization & Deserialization Pin
khchan10-Jun-04 18:40
khchan10-Jun-04 18:40 
GeneralRe: XML Serialization & Deserialization Pin
Heath Stewart11-Jun-04 3:37
protectorHeath Stewart11-Jun-04 3:37 
Generaladding a Menu bar log Pin
samithas10-Jun-04 18:18
samithas10-Jun-04 18:18 
QuestionHow does ImageIndex property works Pin
luming112233445510-Jun-04 17:42
luming112233445510-Jun-04 17:42 
AnswerRe: How does ImageIndex property works Pin
Nick Seng10-Jun-04 21:30
Nick Seng10-Jun-04 21:30 
GeneralRe: How does ImageIndex property works Pin
Heath Stewart11-Jun-04 3:30
protectorHeath Stewart11-Jun-04 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.