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. C / C++ / MFC
  4. Messages and Windows

Messages and Windows

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminquestion
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello all, I have dialog based application and I have UDP connection running on bacground ( this takes about 1% from 100Mb network capacity ). Each time when I receive an UDP packet so then the communication class send a message to the main window. And when I drag the main window for the top blue strip (with min and max buttons) so then I lost messages from communication class ... Why? Do you have any solution suggestion? Thank you for any advice and direction to I could go .... KaMinek

    S 1 Reply Last reply
    0
    • L Lost User

      Hello all, I have dialog based application and I have UDP connection running on bacground ( this takes about 1% from 100Mb network capacity ). Each time when I receive an UDP packet so then the communication class send a message to the main window. And when I drag the main window for the top blue strip (with min and max buttons) so then I lost messages from communication class ... Why? Do you have any solution suggestion? Thank you for any advice and direction to I could go .... KaMinek

      S Offline
      S Offline
      SunKnight0
      wrote on last edited by
      #2

      Are you saying that when you move the window by dragging the title bar it no longer receives messages? Does it happen only while you move it or do you keep not getting the messages after you stop moving it? Are you sure the messages are lost or maybe just queued behind the window movement messages? Are you sure the (I assume) custom messages you sent to the window are of the proper WM_USER+X range and do not happen to have the same IDs are system messages?

      X 1 Reply Last reply
      0
      • S SunKnight0

        Are you saying that when you move the window by dragging the title bar it no longer receives messages? Does it happen only while you move it or do you keep not getting the messages after you stop moving it? Are you sure the messages are lost or maybe just queued behind the window movement messages? Are you sure the (I assume) custom messages you sent to the window are of the proper WM_USER+X range and do not happen to have the same IDs are system messages?

        X Offline
        X Offline
        xSoptik
        wrote on last edited by
        #3

        The messages are not WM_USER but they are RegisterWindowMessage(s). Yes, when I drag window by the title bar there hapanned something and my registered message dont swim up in the main window WindowProc handler. This is happaned even if I only press left mouse button on the title bar. Why? Why? Why?

        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