Click here to Skip to main content
15,910,981 members
Home / Discussions / C#
   

C#

 
AnswerRe: using lparam parameter of SendMessage function Pin
Simon P Stevens13-Oct-08 23:12
Simon P Stevens13-Oct-08 23:12 
GeneralRe: using lparam parameter of SendMessage function Pin
Sandeep Kalra13-Oct-08 23:47
Sandeep Kalra13-Oct-08 23:47 
GeneralRe: using lparam parameter of SendMessage function Pin
Simon P Stevens14-Oct-08 0:30
Simon P Stevens14-Oct-08 0:30 
GeneralRe: using lparam parameter of SendMessage function Pin
Sandeep Kalra14-Oct-08 0:52
Sandeep Kalra14-Oct-08 0:52 
GeneralRe: using lparam parameter of SendMessage function Pin
Simon P Stevens14-Oct-08 2:47
Simon P Stevens14-Oct-08 2:47 
QuestionRe: using lparam parameter of SendMessage function Pin
Mark Salsbery14-Oct-08 4:42
Mark Salsbery14-Oct-08 4:42 
AnswerRe: using lparam parameter of SendMessage function Pin
Sandeep Kalra14-Oct-08 18:23
Sandeep Kalra14-Oct-08 18:23 
AnswerRe: using lparam parameter of SendMessage function [modified] Pin
#realJSOP13-Oct-08 23:49
professional#realJSOP13-Oct-08 23:49 
To make a lParam integer, try this:

public int MakeLParam(int loWord, int hiWord)
{
    return ((hiWord << 16) + loWord);
}
public int MakeWParam(int loWord, int hiWord)
{
    return ((hiWord << 16) + loWord);
}


Now, all you have to do is construct the two parts of the lParam value, and pass them into one of those functions.

You may also want to look at this page:

http://www.pinvoke.net/default.aspx/user32/SendInput.html[^]

As usual, a little googling would have saved you *and us* HOURS of time.

[EDIT] and the univoter strikes again. I provide an answer and get 1'd. How f***ing pathetic.


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


modified on Tuesday, October 14, 2008 7:06 AM

QuestionAjax modal pop extender query Pin
dsaikrishna13-Oct-08 22:18
dsaikrishna13-Oct-08 22:18 
QuestionInvalid character while using xmldocument.load? Pin
.NetRams13-Oct-08 20:32
.NetRams13-Oct-08 20:32 
AnswerRe: Invalid character while using xmldocument.load? Pin
Guffa13-Oct-08 20:34
Guffa13-Oct-08 20:34 
AnswerRe: Invalid character while using xmldocument.load? Pin
Brij13-Oct-08 22:56
mentorBrij13-Oct-08 22:56 
AnswerRe: Invalid character while using xmldocument.load? Pin
Jakob Olsen14-Oct-08 0:58
Jakob Olsen14-Oct-08 0:58 
JokeRe: Invalid character while using xmldocument.load? Pin
Guffa14-Oct-08 2:51
Guffa14-Oct-08 2:51 
GeneralRe: Invalid character while using xmldocument.load? Pin
Mark Salsbery14-Oct-08 4:46
Mark Salsbery14-Oct-08 4:46 
QuestionHelp in WMI Pin
lal001213-Oct-08 20:20
lal001213-Oct-08 20:20 
AnswerRe: Help in WMI Pin
Uros Calakovic14-Oct-08 4:38
Uros Calakovic14-Oct-08 4:38 
QuestionXML as DataBase Pin
E_Gold13-Oct-08 19:58
E_Gold13-Oct-08 19:58 
AnswerRe: XML as DataBase Pin
bcozican13-Oct-08 20:10
bcozican13-Oct-08 20:10 
GeneralRe: XML as DataBase Pin
E_Gold13-Oct-08 20:33
E_Gold13-Oct-08 20:33 
GeneralRe: XML as DataBase Pin
bcozican13-Oct-08 20:56
bcozican13-Oct-08 20:56 
AnswerRe: XML as DataBase Pin
Guffa13-Oct-08 20:38
Guffa13-Oct-08 20:38 
GeneralRe: XML as DataBase Pin
E_Gold13-Oct-08 22:15
E_Gold13-Oct-08 22:15 
AnswerRe: XML as DataBase Pin
Guffa13-Oct-08 22:45
Guffa13-Oct-08 22:45 
AnswerRe: XML as DataBase Pin
N a v a n e e t h13-Oct-08 20:41
N a v a n e e t h13-Oct-08 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.