Triggering mouse events on static controls?

There is no 'mouse drag event'. You'll have to sub-class the control. Record the mouse position in the WM_LBUTTONDOWN message handler and capture the mouse.

Then check it against the current mouse position in the WM_MOUSEMOVE message handler. It the button is still down and the distance is larger than GetSystemMetrics, SM_CXDOUBLECLK and SM_CYDOUBLECLK then make that your mouse drag event.

I'd suggest you to take a look at WTL: CContainedWindow is very handy to SubclassWindow. Manual sub-classing is very messy, but with WTL is a no brainier. In short, it allows you to set your own windowproc that processes window messages that windows sends to controls.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions