Click here to Skip to main content
15,889,096 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGDI+ Visual C++ wrapper class operators missing? Pin
bob169727-Jan-06 15:03
bob169727-Jan-06 15:03 
Questionask one question in VC .NET Pin
Pierre,Hsieh7-Jan-06 13:51
Pierre,Hsieh7-Jan-06 13:51 
AnswerRe: ask one question in VC .NET Pin
PJ Arends7-Jan-06 14:02
professionalPJ Arends7-Jan-06 14:02 
GeneralRe: ask one question in VC .NET Pin
Pierre,Hsieh7-Jan-06 14:14
Pierre,Hsieh7-Jan-06 14:14 
GeneralRe: ask one question in VC .NET Pin
PJ Arends7-Jan-06 14:44
professionalPJ Arends7-Jan-06 14:44 
GeneralRe: ask one question in VC .NET Pin
Pierre,Hsieh7-Jan-06 15:03
Pierre,Hsieh7-Jan-06 15:03 
QuestionRe: ask one question in VC .NET Pin
David Crow7-Jan-06 17:15
David Crow7-Jan-06 17:15 
QuestionSimulating mouse clicks Pin
Still learning how to code7-Jan-06 11:46
Still learning how to code7-Jan-06 11:46 
The application that I am currently developing is attempting to programmatically control an external application by simulating mouse clicks in it's various windows. I have managed to produce the context menu on the external application by simulating a RH mouse click (using PostMessage's with WM_RBUTTONDOWN / WM_RBUTTONUP). I can also execute an item on the popup menu by positioning the cursor and simulating a LH mouse click (using PostMessage's with WM_LBUTTONDOWN / WM_LBUTTONUP). This all works as expected if there is no other code following it (i.e. my app exits) or there is an AfxMessageBox separating this code and further mouse-click simulations. The failure is that execution of the popup menu item doesn't result in a new window. I get the feeling that the external app is not getting 'time' to receive/react to the simulated clicks until my app exits (Presumably, the AfxMessageBox must also have the same effect - yes ?). I have tried Sleep(10000) after the context menu operation, but this doesn't seem to help. Do I need to (somehow) inform the system that my app doesn't need the remainder of it's current timeslot, thus giving the external app time to "do its stuff". If so, how do I do that ?

Doug
AnswerRe: Simulating mouse clicks Pin
vipinasda7-Jan-06 12:04
vipinasda7-Jan-06 12:04 
GeneralRe: Simulating mouse clicks Pin
Still learning how to code7-Jan-06 21:15
Still learning how to code7-Jan-06 21:15 
AnswerRe: Simulating mouse clicks Pin
#realJSOP8-Jan-06 3:00
mve#realJSOP8-Jan-06 3:00 
GeneralRe: Simulating mouse clicks Pin
Still learning how to code8-Jan-06 5:41
Still learning how to code8-Jan-06 5:41 
AnswerRe: Simulating mouse clicks Pin
Stephen Hewitt9-Jan-06 11:47
Stephen Hewitt9-Jan-06 11:47 
Question[Message Deleted] Pin
S.C.Wong7-Jan-06 6:08
S.C.Wong7-Jan-06 6:08 
AnswerRe: How to add an ActiveX control in another ActiveX control? Pin
Prakash Nadar7-Jan-06 18:05
Prakash Nadar7-Jan-06 18:05 
Questionhow to pass a class ,object to a function by using pointers? Pin
neodeaths7-Jan-06 4:32
neodeaths7-Jan-06 4:32 
AnswerRe: how to pass a class ,object to a function by using pointers? Pin
Prakash Nadar7-Jan-06 4:46
Prakash Nadar7-Jan-06 4:46 
GeneralRe: how to pass a class ,object to a function by using pointers? Pin
neodeaths7-Jan-06 4:56
neodeaths7-Jan-06 4:56 
GeneralRe: how to pass a class ,object to a function by using pointers? Pin
Prakash Nadar7-Jan-06 5:09
Prakash Nadar7-Jan-06 5:09 
GeneralRe: how to pass a class ,object to a function by using pointers? Pin
neodeaths7-Jan-06 5:14
neodeaths7-Jan-06 5:14 
GeneralRe: how to pass a class ,object to a function by using pointers? Pin
Kevin McFarlane7-Jan-06 5:14
Kevin McFarlane7-Jan-06 5:14 
GeneralRe: how to pass a class ,object to a function by using pointers? Pin
Prakash Nadar7-Jan-06 5:17
Prakash Nadar7-Jan-06 5:17 
GeneralAny One Care To Explain Why My Messages are Voted Down? Pin
Prakash Nadar7-Jan-06 21:17
Prakash Nadar7-Jan-06 21:17 
GeneralRe: Any One Care To Explain Why My Messages are Voted Down? Pin
#realJSOP8-Jan-06 3:05
mve#realJSOP8-Jan-06 3:05 
GeneralRe: Any One Care To Explain Why My Messages are Voted Down? Pin
Trollslayer8-Jan-06 3:50
mentorTrollslayer8-Jan-06 3:50 

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.