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

C / C++ / MFC

 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Ravi Bhavnani21-Feb-04 8:07
professionalRavi Bhavnani21-Feb-04 8:07 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Archer28221-Feb-04 8:13
Archer28221-Feb-04 8:13 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Ravi Bhavnani21-Feb-04 8:22
professionalRavi Bhavnani21-Feb-04 8:22 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Archer28221-Feb-04 8:26
Archer28221-Feb-04 8:26 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Ravi Bhavnani21-Feb-04 8:41
professionalRavi Bhavnani21-Feb-04 8:41 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Archer28221-Feb-04 8:44
Archer28221-Feb-04 8:44 
GeneralRe: Visual C++ 6 Syntax Highlighting Pin
Ravi Bhavnani21-Feb-04 8:49
professionalRavi Bhavnani21-Feb-04 8:49 
Generalwindows program in background and simulate keyboard Pin
Ylis21-Feb-04 5:41
Ylis21-Feb-04 5:41 
1. When I create a windows program and don't have it in focus it seems to end proccessing. This is where I place my code:
<br />
while (GetMessage(&msg, NULL, 0, 0)) <br />
{<br />
    if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) <br />
    {<br />
         TranslateMessage(&msg);<br />
         DispatchMessage(&msg);<br />
    }<br />
    //my code here<br />
}<br />

Is there anyway I can make sure that my program is being run all the time, even if it's not in focus?

2. My second question is about simulating the keyboard, I know about PostMessage(). However, with this function I must post
a key press to a certain window, what I want to do is to simulate a keypress to windows.

Poke tongue | ;-P

//Ylis
GeneralRe: windows program in background and simulate keyboard Pin
Prakash Nadar21-Feb-04 5:46
Prakash Nadar21-Feb-04 5:46 
GeneralRe: windows program in background and simulate keyboard Pin
Ylis21-Feb-04 6:43
Ylis21-Feb-04 6:43 
GeneralRe: windows program in background and simulate keyboard Pin
Nirav Doshi21-Feb-04 12:23
Nirav Doshi21-Feb-04 12:23 
GeneralIDirectSound8::SetCooperativeLevel Pin
Alexander M.,21-Feb-04 5:11
Alexander M.,21-Feb-04 5:11 
GeneralRe: IDirectSound8::SetCooperativeLevel Pin
Prakash Nadar21-Feb-04 5:42
Prakash Nadar21-Feb-04 5:42 
GeneralAnother problem. Pin
Alexander M.,21-Feb-04 7:30
Alexander M.,21-Feb-04 7:30 
GeneralTracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 4:17
Tim Schuhmacher21-Feb-04 4:17 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Prakash Nadar21-Feb-04 5:52
Prakash Nadar21-Feb-04 5:52 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 5:59
Tim Schuhmacher21-Feb-04 5:59 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Prakash Nadar21-Feb-04 6:12
Prakash Nadar21-Feb-04 6:12 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 11:51
Tim Schuhmacher21-Feb-04 11:51 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Shog921-Feb-04 6:20
sitebuilderShog921-Feb-04 6:20 
GeneralRe: Tracking the mouse like Autocad (big cross) Pin
Tim Schuhmacher21-Feb-04 11:46
Tim Schuhmacher21-Feb-04 11:46 
GeneralLooking for some code Pin
#realJSOP21-Feb-04 3:42
mve#realJSOP21-Feb-04 3:42 
GeneralRe: Looking for some code Pin
Shog921-Feb-04 5:57
sitebuilderShog921-Feb-04 5:57 
GeneralRe: Looking for some code Pin
Jörgen Sigvardsson21-Feb-04 11:57
Jörgen Sigvardsson21-Feb-04 11:57 
QuestionHow can I see member variables corresponding a selected control in VS 2003 ? Pin
Gem21-Feb-04 2:38
Gem21-Feb-04 2:38 

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.