Нужно симитироввать нажатие кнопки мыши на PictureBox.
Знаю, что нужно использовать SendMessage, но не знаю какие нужны константы. Помогите.
tyomitch писал(а):Только WM_LBUTTONUP не забудь потом послать
АгаЮстас писал(а):tyomitch писал(а):Только WM_LBUTTONUP не забудь потом послать
Зачем? Боишься кнопка останется нажатой?
MSDN писал(а):BM_SETSTATE
An application sends a BM_SETSTATE message to change the highlight state of a button. The highlight state indicates whether the button is highlighted as if the user had pushed it.
WM_LBUTTONDOWN
The WM_LBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 9