Click here to Skip to main content
16,013,338 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting menu item as checked Pin
Beer2624-Jul-03 10:40
Beer2624-Jul-03 10:40 
GeneralRe: Setting menu item as checked Pin
Jay Hova25-Jul-03 1:54
Jay Hova25-Jul-03 1:54 
GeneralRe: Setting menu item as checked Pin
Beer2625-Jul-03 2:47
Beer2625-Jul-03 2:47 
Generalsoftware and security Pin
Cyberizen24-Jul-03 5:53
Cyberizen24-Jul-03 5:53 
GeneralRe: software and security Pin
Alexander M.,24-Jul-03 6:47
Alexander M.,24-Jul-03 6:47 
GeneralRe: software and security Pin
Toni7824-Jul-03 7:21
Toni7824-Jul-03 7:21 
GeneralRe: software and security Pin
AlexO24-Jul-03 7:55
AlexO24-Jul-03 7:55 
GeneralMultiple Threads Pin
Dangleberry24-Jul-03 5:46
sussDangleberry24-Jul-03 5:46 
Hi all, I have a dilemma involving message handling. Basically I'm writing a game and have created a frontend in its own thread. To avoid multithreaded render problems the application always calls the frontend when it is required to be rendered. However, I would like the frontend to track all the keyboard and mouse messages (not the app) when the frontend is active, but the app should process them when it is inactive (to move the character etc.). I have not yet implemented directinput (though I am using directx), though maybe it is about time I did. What I would like to know is how to have my frontend feeding on mouse and keyboard messages sent to the app when its active, and stop when its inactive. I had a look at SetWindowsHookEx but this only gets activated when the app uses PeekMessage and the whole purpose of having my frontend in another thread spying on mouse and keyboard messages was so that lengthy renders don't inhibit the mouse and keyboard events. Any ideas or advice would be appreciated in this respect.

Many Thanks,
Alan.
GeneralRe: Multiple Threads Pin
John M. Drescher24-Jul-03 5:50
John M. Drescher24-Jul-03 5:50 
GeneralRe: Multiple Threads Pin
Anonymous24-Jul-03 6:26
Anonymous24-Jul-03 6:26 
GeneralRe: Multiple Threads Pin
Dangleberry24-Jul-03 6:27
sussDangleberry24-Jul-03 6:27 
GeneralRe: Multiple Threads Pin
Alexander M.,24-Jul-03 6:49
Alexander M.,24-Jul-03 6:49 
GeneralRe: Multiple Threads Pin
John M. Drescher24-Jul-03 6:55
John M. Drescher24-Jul-03 6:55 
GeneralRe: Multiple Threads Pin
Alexander M.,25-Jul-03 2:33
Alexander M.,25-Jul-03 2:33 
GeneralRe: Multiple Threads Pin
Dangleberry25-Jul-03 3:52
sussDangleberry25-Jul-03 3:52 
Generaldetecting screen display area Pin
Shay Harel24-Jul-03 4:16
Shay Harel24-Jul-03 4:16 
GeneralRe: detecting screen display area Pin
Iain Clarke, Warrior Programmer24-Jul-03 4:29
Iain Clarke, Warrior Programmer24-Jul-03 4:29 
GeneralRe: detecting screen display area Pin
Shay Harel24-Jul-03 4:48
Shay Harel24-Jul-03 4:48 
GeneralRe: detecting screen display area Pin
Frank K24-Jul-03 4:30
Frank K24-Jul-03 4:30 
QuestionHow to get data from a retrieve data from a list box (activeX control) Pin
Deepak Samuel24-Jul-03 3:55
Deepak Samuel24-Jul-03 3:55 
AnswerRe: How to get data from a retrieve data from a list box (activeX control) Pin
Michael P Butler24-Jul-03 6:42
Michael P Butler24-Jul-03 6:42 
GeneralTwo dimensional array problem Pin
superstein24-Jul-03 3:02
superstein24-Jul-03 3:02 
GeneralRe: Two dimensional array problem Pin
Alexander M.,24-Jul-03 3:06
Alexander M.,24-Jul-03 3:06 
GeneralRe: Two dimensional array problem Pin
John M. Drescher24-Jul-03 3:19
John M. Drescher24-Jul-03 3:19 
GeneralRe: Two dimensional array problem Pin
John M. Drescher24-Jul-03 3:32
John M. Drescher24-Jul-03 3:32 

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.