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. SendMessege()

SendMessege()

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • E Offline
    E Offline
    Ever1234
    wrote on last edited by
    #1

    Could someone clear this up for me. Like tell me all the stuff about it. "To wonder is to begin to understand"

    R K 2 Replies Last reply
    0
    • E Ever1234

      Could someone clear this up for me. Like tell me all the stuff about it. "To wonder is to begin to understand"

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      SendMessage() sends a message to a window. This means, it places the message in the target window's message queue, waits for it to be processed, and then returns. PostMessage() simply places the message in the target's queue and returns immediately. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

      1 Reply Last reply
      0
      • E Ever1234

        Could someone clear this up for me. Like tell me all the stuff about it. "To wonder is to begin to understand"

        K Offline
        K Offline
        Kuniva
        wrote on last edited by
        #3

        uh, i dont know all about it but i believe it is just a function to send certain messages to a window like this: SendMessage(WM_CLOSE,0,0); This for instance would send a WM_CLOSE message to your window and if that window has a handler for the message to close it, the window will be closed. There's all sorts of messages (see winuser.h). WM means its a window message, you also have messages for buttons and other objects, for instance, button messages start with "BN". The two 0's are the wParam and the lParam, these are optional parameters, for example if a window receives a WM_COMMAND message it means someone pressed a button or did another command, then you can find what command by looking at the wParam. Kuniva

        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