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. wparm,lparm

wparm,lparm

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

    I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging. "Every thing can be done Better, Then it is being done"

    N S 2 Replies Last reply
    0
    • S Scorpio

      I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging. "Every thing can be done Better, Then it is being done"

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Scorpio  wrote:

      I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging.

      Read this short discussion[^].


      Nibu thomas A Developer Programming tips[^]  My site[^]

      1 Reply Last reply
      0
      • S Scorpio

        I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging. "Every thing can be done Better, Then it is being done"

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        WPARAM and LPARAM are message parameters which is defined as typedef UINT_PTR WPARAM; u can use this parameters when u ::SendMessage or ::PostMessage to a window. this value can be anything casted to WPARAM or LPARAM. The message processing is the function which decides which parameter to use. u can pass pointers integer values etc... but the final processing is doing in the message processing function. you can define your on message by using ON_MESSAGE macro inside the Message map eg: // example for ON_MESSAGE #define WM_MYMESSAGE (WM_USER + 1) BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass ) ON_MESSAGE( WM_MYMESSAGE, OnMyMessage ) // ... Possibly more entries to handle additional messages END_MESSAGE_MAP( ) refer MSDN for more information SaRath

        S 1 Reply Last reply
        0
        • S Sarath C

          WPARAM and LPARAM are message parameters which is defined as typedef UINT_PTR WPARAM; u can use this parameters when u ::SendMessage or ::PostMessage to a window. this value can be anything casted to WPARAM or LPARAM. The message processing is the function which decides which parameter to use. u can pass pointers integer values etc... but the final processing is doing in the message processing function. you can define your on message by using ON_MESSAGE macro inside the Message map eg: // example for ON_MESSAGE #define WM_MYMESSAGE (WM_USER + 1) BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass ) ON_MESSAGE( WM_MYMESSAGE, OnMyMessage ) // ... Possibly more entries to handle additional messages END_MESSAGE_MAP( ) refer MSDN for more information SaRath

          S Offline
          S Offline
          Scorpio
          wrote on last edited by
          #4

          Is it correct that all the messages are getting processed by function RUN which is embeded in my global object theApp

          S 1 Reply Last reply
          0
          • S Scorpio

            Is it correct that all the messages are getting processed by function RUN which is embeded in my global object theApp

            S Offline
            S Offline
            Sarath C
            wrote on last edited by
            #5

            Pls refer Message Handling and Mapping section in MSDN

            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