CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2001
    Posts
    6

    about GET_X_LPARAM

    Hello,when I use macro GET_X_LPARAM() and GET_Y_LPARAM(),the compiler said that it is undefine,but i have included the windows.h following msdn,what was wrong indeed?


  2. #2
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    469

    Re: about GET_X_LPARAM

    i don't know what was wrong

    just use it HIWORD and LOWORD
    IIRC

    QSoft
    http://qsoft.ragestorm.com

  3. #3
    Join Date
    Feb 2013
    Posts
    3

    Re: about GET_X_LPARAM

    But from the MS DOC:
    Important Do not use the LOWORD or HIWORD macros to extract the x- and y- coordinates of the cursor position because these macros return incorrect results on systems with multiple monitors. Systems with multiple monitors can have negative x- and y- coordinates, and LOWORD and HIWORD treat the coordinates as unsigned quantities.

  4. #4
    Join Date
    Feb 2013
    Posts
    3

    Re: about GET_X_LPARAM

    GET_X_LPARAM is in Windowsx.h

  5. #5
    Join Date
    Feb 2002
    Posts
    4,640

    Re: about GET_X_LPARAM

    After 12 years, I hope the OP found it!

    Viggy

  6. #6
    Join Date
    Feb 2013
    Posts
    3

    Re: about GET_X_LPARAM

    How did it get so late so soon?

    In my defence though, since I came accross this, others would have done so too - and the reply as it stood would (and probably did) have caused more problems.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured