Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved Windows API
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    V K 2
    wrote on last edited by
    #1

    [Message Deleted]

    P 1 Reply Last reply
    0
    • V V K 2

      [Message Deleted]

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      What's the error code returned? As it says on MSDN, If the function fails or times out, the return value is zero. To get extended error information, call GetLastError. If GetLastError returns ERROR_TIMEOUT, then the function timed out. Regards, --Perspx

      Don't trust a computer you can't throw out a window

      -- Steve Wozniak

      V 1 Reply Last reply
      0
      • P Perspx

        What's the error code returned? As it says on MSDN, If the function fails or times out, the return value is zero. To get extended error information, call GetLastError. If GetLastError returns ERROR_TIMEOUT, then the function timed out. Regards, --Perspx

        Don't trust a computer you can't throw out a window

        -- Steve Wozniak

        V Offline
        V Offline
        V K 2
        wrote on last edited by
        #3

        [Message Deleted]

        P 1 Reply Last reply
        0
        • V V K 2

          [Message Deleted]

          P Offline
          P Offline
          Perspx
          wrote on last edited by
          #4

          The reason the function times out is because the window(s) receiving the message take longer to process the message than you specify in the sixth argument for SendMessageTimeOut() - the uTimeout argument (which is in milliseconds). To overcome the problem really depends on what you're doing; you could try increasing the time-out period, or do less message processing in the window procedures that the message is being sent to, however this is not failsafe if the system is running slowly. I assume that you're sending this message to multiple windows, but if you're only sending the message to one window, then it may be better to use the SendMessage() function if you want to avoid a time-out. Regards, --Perspx

          Don't trust a computer you can't throw out a window

          -- Steve Wozniak

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups