Click here to Skip to main content
15,876,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionI am Bemused about std::list<> Pin
yu-jian13-Nov-12 4:17
yu-jian13-Nov-12 4:17 
AnswerRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 5:37
mveRichard MacCutchan13-Nov-12 5:37 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt13-Nov-12 6:03
Stephen Hewitt13-Nov-12 6:03 
GeneralRe: I am Bemused about std::list<> Pin
yu-jian13-Nov-12 6:25
yu-jian13-Nov-12 6:25 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 6:38
mveRichard MacCutchan13-Nov-12 6:38 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt13-Nov-12 15:04
Stephen Hewitt13-Nov-12 15:04 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 20:59
mveRichard MacCutchan13-Nov-12 20:59 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt13-Nov-12 23:54
Stephen Hewitt13-Nov-12 23:54 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 23:58
mveRichard MacCutchan13-Nov-12 23:58 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt14-Nov-12 0:58
Stephen Hewitt14-Nov-12 0:58 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan14-Nov-12 1:30
mveRichard MacCutchan14-Nov-12 1:30 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt14-Nov-12 2:06
Stephen Hewitt14-Nov-12 2:06 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan14-Nov-12 2:26
mveRichard MacCutchan14-Nov-12 2:26 
GeneralRe: I am Bemused about std::list<> Pin
Stephen Hewitt14-Nov-12 2:30
Stephen Hewitt14-Nov-12 2:30 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan14-Nov-12 3:36
mveRichard MacCutchan14-Nov-12 3:36 
GeneralRe: I am Bemused about std::list<> Pin
David Crow14-Nov-12 3:16
David Crow14-Nov-12 3:16 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan14-Nov-12 3:32
mveRichard MacCutchan14-Nov-12 3:32 
GeneralRe: I am Bemused about std::list<> Pin
yu-jian13-Nov-12 6:25
yu-jian13-Nov-12 6:25 
GeneralRe: I am Bemused about std::list<> Pin
Richard MacCutchan13-Nov-12 6:43
mveRichard MacCutchan13-Nov-12 6:43 
QuestionRe: I am Bemused about std::list<> Pin
David Crow13-Nov-12 8:05
David Crow13-Nov-12 8:05 
AnswerRe: I am Bemused about std::list<> Pin
Stephen Hewitt13-Nov-12 15:13
Stephen Hewitt13-Nov-12 15:13 
QuestionPDF Accessing problem Pin
BCN-16312-Nov-12 17:22
BCN-16312-Nov-12 17:22 
QuestionSendMessage(...) MFC is not working in win 7 enterprise edition Pin
vikuseth12-Nov-12 8:02
vikuseth12-Nov-12 8:02 
Here is my source code for locking my computer screen (Generally we do by pressing win+L)But Here in the below code what i am trying to do is , when user run the exe created by this application 1st the screen will be invisible (which is not happening in case of win+L) then next time when the user interact with the system it will show the user that the screen is locked .

C++
<pre lang="c++">
#include "stdafx.h"

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// Turn off monitor

Sleep(500); // Eliminate user's interaction for 500 ms
ret =SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
}

LockWorkStation();

return 0;
}
AnswerRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
Richard MacCutchan12-Nov-12 9:11
mveRichard MacCutchan12-Nov-12 9:11 
GeneralRe: SendMessage(...) MFC is not working in win 7 enterprise edition Pin
vikuseth12-Nov-12 9:29
vikuseth12-Nov-12 9:29 

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.