Archived

This topic is now archived and is closed to further replies.

TheBlackJester

HIWORD and LOWORD not recognized

Recommended Posts

Hey, I''m just throwing in some basic mouse support and my code looks like this In the WndProc()

case WM_MOUSEMOVE:

mousePosX = LOWORD[lParam];
mousePosY = HIWORD[lParam];

return 0;
break;

 
And I''m gettin an undeclared identifier message on HIWORD and LOWORD Anyone know whats up?


"With my feet upon the ground I lose myself between the sounds and open wide to suck it in, I feel it move across my skin. I''m reaching up and reaching out. I''m reaching for the random or what ever will bewilder me, what ever will bewilder me. And following our will and wind we may just go where no one''s been. We''ll ride the spiral to the end and may just go where no one''s been." - Maynard James Keenan
[TheBlackJester ]
[Wildfire Studios ]

Share this post


Link to post
Share on other sites
Thnx, I just figured that out and was gonna edit the post but you beat me to it

Thanx for the replies



"With my feet upon the ground I lose myself between the sounds and open wide to suck it in, I feel it move across my skin. I''m reaching up and reaching out. I''m reaching for the random or what ever will bewilder me, what ever will bewilder me. And following our will and wind we may just go where no one''s been. We''ll ride the spiral to the end and may just go where no one''s been." - Maynard James Keenan
[TheBlackJester ]
[Wildfire Studios ]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Before you do that, let me suggest this:

GET_X_LPARAM
The GET_X_LPARAM macro retrieves the signed x-coordinate from the given LPARAM value.

int GET_X_LPARAM(
LPARAM lParam
);

GET_Y_LPARAM
The GET_Y_LPARAM macro retrieves the signed y-coordinate from the given LPARAM value.

int GET_Y_LPARAM(
LPARAM lParam
);

Incase your coordinates aren''t zero based in the upper left hand corner.

Share this post


Link to post
Share on other sites