August 22nd, 1999, 06:11 AM
Can we activate a window message artificialy e.g mouse click
Niaz
Niaz
|
Click to See Complete Forum and Search --> : Mouse Click August 22nd, 1999, 06:11 AM Can we activate a window message artificialy e.g mouse click Niaz kishk91 August 22nd, 1999, 06:57 AM yes you can. try this: map the mouse event you wish in the h file: afx_msg void ON_LBUTTONDOWN(); void CSomeClass::OnLButtonDown() //or some other mouse event like OnLButtonUp() or OnRButtonDown() eg. void CSomeClass::OnLButtonDown() { PostMessage(WM_ANY_MESSAGE,0,0); //or SendMessage(WM_ANY_MESSAGE,0,0); } it will work the same.. reguards kishk91 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |