Can we activate a window message artificialy e.g mouse click
Niaz
Printable View
Can we activate a window message artificialy e.g mouse click
Niaz
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