Windows messages to .NET events

  • Thread starter Thread starter Edward Diener
  • Start date Start date
E

Edward Diener

I recall seeing a document that maps Windows messages to .NET events. Does
anybody know where that document might be ? I can not find it under MSDN.
 
Hi Edward,

I think you need to implement your own sizing code.
Handle the PictureBox MouseMove event to show a resize cursor near the borders.
On MouseDown and the cursor where at a border change the size based on user movements.
You might want to add a border to the picturebox when the user clicks on it to visualize 'edit mode'
 
Ah, Sorry Edward,

Was meaning to answer another post and accidentally targeted your post instead.
 
I don't know of a document like that but if you are trying to
intercept certain windows messages I can offer a suggestion.

Override your form's WndProc method. The WndProc method will be called
with a Message reference that has a message number in it. You can map
the message number with window's message by looking at winuser.h, for
example. Make sure to call the base class WndProc method for messages
that you don't want to handle.

sayed
 
Sayed said:
I don't know of a document like that but if you are trying to
intercept certain windows messages I can offer a suggestion.

Override your form's WndProc method. The WndProc method will be called
with a Message reference that has a message number in it. You can map
the message number with window's message by looking at winuser.h, for
example. Make sure to call the base class WndProc method for messages
that you don't want to handle.

Yes, of course, this is the standard way. But in .NET better ways are
overriding a method or handling an event which tells me that some message
has been received. MS put out a document of the equivalent .NET actions for
nearly all Win32 messages, and I remember reading it, but like I failed to
download it and now want to find it again. It is of great use for .NET
component developers.
 
Back
Top