Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a Q about C++ and OS Pin
Michael P Butler2-Dec-03 1:26
Michael P Butler2-Dec-03 1:26 
GeneralRe: a Q about C++ and OS Pin
Kevin McFarlane2-Dec-03 2:43
Kevin McFarlane2-Dec-03 2:43 
GeneralRe: a Q about C++ and OS Pin
Tim Smith2-Dec-03 4:21
Tim Smith2-Dec-03 4:21 
GeneralRe: a Q about C++ and OS Pin
Signal-92-Dec-03 8:04
Signal-92-Dec-03 8:04 
GeneralRe: a Q about C++ and OS Pin
Tim Smith2-Dec-03 9:52
Tim Smith2-Dec-03 9:52 
GeneralRe: a Q about C++ and OS Pin
Big Art2-Dec-03 10:52
Big Art2-Dec-03 10:52 
GeneralProgrammatic control of mouse cursor Pin
Arshad Tanveer2-Dec-03 0:59
Arshad Tanveer2-Dec-03 0:59 
GeneralRe: Programmatic control of mouse cursor Pin
KellyR2-Dec-03 4:31
KellyR2-Dec-03 4:31 
Well as far as the keyboard goes, normally you'd be doing that all internally anyway. For instance, let's say you're writing a game in which the up-arrow key moves a character forward. Well, you're already going to have written a function like MoveForward which is called from the up arrow key. If you want to simulate this behavior, just call MoveForward from somewhere else,, the key itself is irrelevant.

It's the same with the mouse cursor, except that now you want to display something to the screen. You could simulate this with your own image of a mousecursor moving to the button and clicking - I'm not certain how to actually take the cursor away from the user programmatically and move it where you want, but it shouldn't be terribly difficult I think.. but the only part you need to worry about is what it looks like on the screen. Otherwise just call whatever function you call when you catch the button-click, you don't actually need the mouse to click per se. I know I didn't answer everything but I hope I helped somewhat at least.

Kelly Ryan
GeneralRe: Programmatic control of mouse cursor Pin
El'Cachubrey2-Dec-03 4:36
El'Cachubrey2-Dec-03 4:36 
Generalwriting in a file Pin
karteek2-Dec-03 0:53
karteek2-Dec-03 0:53 
GeneralRe: writing in a file Pin
BaldwinMartin2-Dec-03 1:09
BaldwinMartin2-Dec-03 1:09 
GeneralRe: writing in a file Pin
karteek2-Dec-03 1:15
karteek2-Dec-03 1:15 
GeneralRe: writing in a file Pin
judo2-Dec-03 1:53
judo2-Dec-03 1:53 
GeneralRe: writing in a file Pin
BaldwinMartin2-Dec-03 2:12
BaldwinMartin2-Dec-03 2:12 
GeneralRe: writing in a file Pin
David Crow2-Dec-03 3:20
David Crow2-Dec-03 3:20 
QuestionDeleting listbox item jumps to top? Pin
Moak2-Dec-03 0:43
Moak2-Dec-03 0:43 
AnswerRe: Deleting listbox item jumps to top? Pin
BaldwinMartin2-Dec-03 0:48
BaldwinMartin2-Dec-03 0:48 
AnswerRe: Deleting listbox item jumps to top? Pin
includeh102-Dec-03 0:50
includeh102-Dec-03 0:50 
GeneralRe: Deleting listbox item jumps to top? Pin
Moak2-Dec-03 1:00
Moak2-Dec-03 1:00 
GeneralRe: Deleting listbox item jumps to top? Pin
Moak2-Dec-03 1:09
Moak2-Dec-03 1:09 
GeneralXP style Pin
viliam2-Dec-03 0:00
viliam2-Dec-03 0:00 
GeneralRe: XP style Pin
Chris Morrison7-Dec-03 7:54
Chris Morrison7-Dec-03 7:54 
GeneralSlow Editor in VC+ 6.0 Pin
BadJerry1-Dec-03 23:50
BadJerry1-Dec-03 23:50 
GeneralRe: Slow Editor in VC+ 6.0 Pin
VC++ Boy2-Dec-03 1:44
VC++ Boy2-Dec-03 1:44 
GeneralRe: Slow Editor in VC+ 6.0 Pin
BadJerry2-Dec-03 1:56
BadJerry2-Dec-03 1:56 

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.