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. MAKEWPARAM

MAKEWPARAM

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

    What's wrong with this? PostMessage(WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_hWnd); error C2064: term does not evaluate to a function MAKEWPARAM is causing this but I can't see something wrong with it. Thanks, Arjan.

    A M 2 Replies Last reply
    0
    • A Arjan Schouten

      What's wrong with this? PostMessage(WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_hWnd); error C2064: term does not evaluate to a function MAKEWPARAM is causing this but I can't see something wrong with it. Thanks, Arjan.

      A Offline
      A Offline
      Arjan Schouten
      wrote on last edited by
      #2

      Still don't know why MAKEWPARAM is not working but fixed it with WPARAM wParam = (LBN_SELCHANGE << 16) + IDC_LIST1; PostMessage(WM_COMMAND, wParam, (LPARAM) m_hWnd); Arjan.

      1 Reply Last reply
      0
      • A Arjan Schouten

        What's wrong with this? PostMessage(WM_COMMAND, MAKEWPARAM(IDC_LIST1, LBN_SELCHANGE), (LPARAM) m_hWnd); error C2064: term does not evaluate to a function MAKEWPARAM is causing this but I can't see something wrong with it. Thanks, Arjan.

        M Offline
        M Offline
        Mike Nordell
        wrote on last edited by
        #3

        You are not including the header file that defines that macro, or have some macros set that excludes the definition of it. Compiler flag /P is your friend.

        A 1 Reply Last reply
        0
        • M Mike Nordell

          You are not including the header file that defines that macro, or have some macros set that excludes the definition of it. Compiler flag /P is your friend.

          A Offline
          A Offline
          Alex Cramer
          wrote on last edited by
          #4

          use MAKELONG

          A 1 Reply Last reply
          0
          • A Alex Cramer

            use MAKELONG

            A Offline
            A Offline
            Arjan Schouten
            wrote on last edited by
            #5

            I already tried that but it had the same effect I will check my compiler options now.

            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