Click to See Complete Forum and Search --> : SendMessage


alexK
February 9th, 2000, 09:23 AM
Problem:
On Win Termenal Server the Excel spreadsheet will not execute a macro until a user will click anywhere on a spreeadsheet.
I could send a WM_LBUTTONDOWN message but how would I figure hwnd?
Is there a message for repaint?
Thank you!
Alex.

Lothar Haensler
February 9th, 2000, 09:29 AM
>I could send a WM_LBUTTONDOWN message but how would I figure hwnd?
I'd rather use mouse_event API or SendInput instead.
get the hwnd by calling FindWindow API.

>Is there a message for repaint?
repainting is usually enforced via InvalidateWindow/UpdateWindow

alexK
February 10th, 2000, 09:34 AM
No you are the genius!
Thanks!