Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: swarm robot motor question Pin
bulg23-Apr-09 5:50
bulg23-Apr-09 5:50 
GeneralRe: swarm robot motor question Pin
RTek2323-Apr-09 14:30
professionalRTek2323-Apr-09 14:30 
QuestionHelp referencing a list control in a tab control. Pin
FISH78622-Apr-09 8:59
FISH78622-Apr-09 8:59 
QuestionRe: Help referencing a list control in a tab control. Pin
David Crow22-Apr-09 9:24
David Crow22-Apr-09 9:24 
AnswerRe: Help referencing a list control in a tab control. Pin
FISH78622-Apr-09 9:25
FISH78622-Apr-09 9:25 
QuestionIObjectSafety Pin
siva45522-Apr-09 8:20
siva45522-Apr-09 8:20 
AnswerRe: IObjectSafety Pin
CPallini22-Apr-09 9:01
mveCPallini22-Apr-09 9:01 
QuestionMouse movements & MOUSEEVENTF_MOVE versus Scroll & Highlight Pin
THAQCD22-Apr-09 6:41
THAQCD22-Apr-09 6:41 
I am able to control the mouse movement on the screen as the following:

double fScreenWidth	= GetSystemMetrics( SM_CXSCREEN )-1; 
double fScreenHeight	= GetSystemMetrics( SM_CYSCREEN )-1; 
double fx		= PosX * (65535.0f/fScreenWidth);
double fy		= PosY * (65535.0f/fScreenHeight);		  
			
INPUT  Input={0};			
Input.type		= INPUT_MOUSE;

Input.mi.dwFlags	= MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE;
			
Input.mi.dx		= fx;
Input.mi.dy		= fy;
		  
SendInput(1,&Input,sizeof(INPUT));

However, I am not able to highlight the text or scroll the text as I wanted! Can it be some thimg like this:

For scroll (as WM_MOUSEWHEEL in http://code.google.com/p/lomm/source/browse/trunk/LOTROMusicManager/SDK.cs?spec=svn105&r=105):
Input.mi.dwFlags	= 0x020A|MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE;
For Highlight (as Left button down & XY moving):
Input.mi.dwFlags	= MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE;


Can anyone help? Thank in-advanced.
Questionhighlight words in text to speech Pin
Member 282845222-Apr-09 6:18
Member 282845222-Apr-09 6:18 
AnswerRe: highlight words in text to speech Pin
ThatsAlok22-Apr-09 21:41
ThatsAlok22-Apr-09 21:41 
Questionhow to change sound devices in C++ or C# Pin
wgh1689922-Apr-09 5:17
wgh1689922-Apr-09 5:17 
QuestionImplementing a Scroll in an MFC dialog with an OpenGL window Pin
yousuf_227922-Apr-09 4:29
professionalyousuf_227922-Apr-09 4:29 
QuestionSafe ActiveX control.. Pin
p_196022-Apr-09 4:04
p_196022-Apr-09 4:04 
AnswerRe: Safe ActiveX control.. Pin
frx9622-Apr-09 17:10
frx9622-Apr-09 17:10 
Questiontab control and property pages problem Pin
Mihai Andrei Dragnea22-Apr-09 2:40
Mihai Andrei Dragnea22-Apr-09 2:40 
AnswerRe: tab control and property pages problem Pin
_AnsHUMAN_ 22-Apr-09 2:57
_AnsHUMAN_ 22-Apr-09 2:57 
GeneralRe: tab control and property pages problem Pin
Mihai Andrei Dragnea22-Apr-09 3:39
Mihai Andrei Dragnea22-Apr-09 3:39 
AnswerRe: tab control and property pages problem Pin
David Crow22-Apr-09 4:50
David Crow22-Apr-09 4:50 
GeneralRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:09
FISH78622-Apr-09 9:09 
QuestionRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:11
David Crow22-Apr-09 9:11 
AnswerRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:19
FISH78622-Apr-09 9:19 
QuestionRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:22
David Crow22-Apr-09 9:22 
AnswerRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:24
FISH78622-Apr-09 9:24 
QuestionRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:27
David Crow22-Apr-09 9:27 
AnswerRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:28
FISH78622-Apr-09 9:28 

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.