Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: function with multiple arguments Pin
Michael P Butler15-Jan-04 2:26
Michael P Butler15-Jan-04 2:26 
GeneralRe: function with multiple arguments Pin
Michael Dunn15-Jan-04 5:09
sitebuilderMichael Dunn15-Jan-04 5:09 
Generalto lock an application Pin
Idefix15-Jan-04 1:41
Idefix15-Jan-04 1:41 
GeneralRe: to lock an application [modified] Pin
Marek Grzenkowicz15-Jan-04 4:17
Marek Grzenkowicz15-Jan-04 4:17 
GeneralRe: to lock an application Pin
Idefix15-Jan-04 5:01
Idefix15-Jan-04 5:01 
GeneralRe: to lock an application Pin
Diddy15-Jan-04 5:37
Diddy15-Jan-04 5:37 
GeneralRe: to lock an application Pin
Rage15-Jan-04 7:42
professionalRage15-Jan-04 7:42 
GeneralRe: to lock an application Pin
David Crow15-Jan-04 7:49
David Crow15-Jan-04 7:49 
One way would be to get the screen saver timeout value at the start of your application. Then set this value to whatever idle time you are interested in. Once that idle time has been reached, Windows will broadcast a SC_SCREENSAVE message. When your application ends, restore the screen saver timeout value to what it was.

Another idea that comes to mind would be to call SetWindowsHookEx(). As far as which type of hook to use, I don't know. Several of them look like they might work, but ultimately it'd probably be only one of them.

Classier ways may exist, but having never done this, I'm not familiar with them.


A rich person is not the one who has the most, but the one that needs the least.
GeneralRe: to lock an application Pin
Idefix22-Jan-04 0:37
Idefix22-Jan-04 0:37 
GeneralRe: to lock an application Pin
Idefix22-Jan-04 1:47
Idefix22-Jan-04 1:47 
QuestionCapture LButtonUp in a CListBox ?? Pin
jwd15-Jan-04 0:38
jwd15-Jan-04 0:38 
AnswerRe: Capture LButtonUp in a CListBox ?? Pin
Vladimir Georgiev15-Jan-04 0:51
Vladimir Georgiev15-Jan-04 0:51 
GeneralRe: Capture LButtonUp in a CListBox ?? Pin
Diddy15-Jan-04 5:54
Diddy15-Jan-04 5:54 
Generalthe problem of mscomm32.ocx and vc++ Pin
anders_zhou15-Jan-04 0:26
anders_zhou15-Jan-04 0:26 
Generalload bitmap to dialog Pin
Member 64882815-Jan-04 0:17
Member 64882815-Jan-04 0:17 
GeneralIHTMLWindow4 Pin
Monty215-Jan-04 0:07
Monty215-Jan-04 0:07 
GeneralRe: IHTMLWindow4 Pin
Prakash Nadar15-Jan-04 1:16
Prakash Nadar15-Jan-04 1:16 
GeneralResolving NetBIOS name for IP address Pin
---Ranger---14-Jan-04 23:53
---Ranger---14-Jan-04 23:53 
GeneralRe: Resolving NetBIOS name for IP address Pin
Alexander M.,15-Jan-04 5:27
Alexander M.,15-Jan-04 5:27 
GeneralRe: Resolving NetBIOS name for IP address Pin
---Ranger---15-Jan-04 17:45
---Ranger---15-Jan-04 17:45 
GeneralAVI buffers Pin
Member 52521914-Jan-04 23:23
Member 52521914-Jan-04 23:23 
GeneralRe: AVI buffers Pin
Abhishek Srivastava14-Jan-04 23:38
Abhishek Srivastava14-Jan-04 23:38 
GeneralRe: AVI buffers Pin
Member 52521915-Jan-04 1:00
Member 52521915-Jan-04 1:00 
GeneralLarge Text Display in a Dialog Pin
Dov Sherman14-Jan-04 22:56
Dov Sherman14-Jan-04 22:56 
GeneralRe: Large Text Display in a Dialog Pin
jhwurmbach14-Jan-04 23:11
jhwurmbach14-Jan-04 23:11 

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.