CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: SendMessage

  1. #1
    Join Date
    Oct 1999
    Location
    US
    Posts
    34

    SendMessage

    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.


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: SendMessage

    >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


  3. #3
    Join Date
    Oct 1999
    Location
    US
    Posts
    34

    Re: SendMessage

    No you are the genius!
    Thanks!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured