Click here to Skip to main content
15,918,617 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOutlook Style TreeView Pin
_Jason_7-Oct-03 1:35
_Jason_7-Oct-03 1:35 
Generalcheck if external program runs Pin
Vassili7-Oct-03 1:07
Vassili7-Oct-03 1:07 
GeneralRe: check if external program runs Pin
David Crow7-Oct-03 2:53
David Crow7-Oct-03 2:53 
GeneralInstalling on Clients machines Soap Toolkit 2.0 Pin
Braulio Dez7-Oct-03 0:45
Braulio Dez7-Oct-03 0:45 
QuestionHTTP File Download?? Pin
xxhimanshu7-Oct-03 0:15
xxhimanshu7-Oct-03 0:15 
AnswerRe: HTTP File Download?? Pin
valikac7-Oct-03 5:59
valikac7-Oct-03 5:59 
AnswerRe: HTTP File Download?? Pin
Paul M Watt7-Oct-03 6:09
mentorPaul M Watt7-Oct-03 6:09 
GeneralRe: HTTP File Download?? Pin
xxhimanshu7-Oct-03 21:16
xxhimanshu7-Oct-03 21:16 
QuestionWhy RasSetEntryProperties() doesnt allow me to manage network components? Pin
Sonin Nickolay6-Oct-03 22:36
Sonin Nickolay6-Oct-03 22:36 
QuestionHow can I print in dialog based? Pin
OO-P6-Oct-03 21:24
OO-P6-Oct-03 21:24 
AnswerRe: How can I print in dialog based? Pin
Mike Dimmick6-Oct-03 23:25
Mike Dimmick6-Oct-03 23:25 
AnswerRe: How can I print in dialog based? Pin
FearlessBurner7-Oct-03 0:04
FearlessBurner7-Oct-03 0:04 
AnswerRe: How can I print in dialog based? Pin
Mike Danberg7-Oct-03 17:26
Mike Danberg7-Oct-03 17:26 
GeneralProblem with MsChart-Ctrl Pin
AnTri6-Oct-03 21:12
AnTri6-Oct-03 21:12 
GeneralHelp with HTML help using RTF Pin
Azghar Hussain6-Oct-03 21:06
professionalAzghar Hussain6-Oct-03 21:06 
Generalthrow or throw new?; Pin
Bo Hunter6-Oct-03 19:50
Bo Hunter6-Oct-03 19:50 
GeneralRe: throw or throw new?; Pin
ZoogieZork6-Oct-03 20:22
ZoogieZork6-Oct-03 20:22 
GeneralRe: throw or throw new?; Pin
jhwurmbach6-Oct-03 22:45
jhwurmbach6-Oct-03 22:45 
QuestionHow to programmatically setting power button action? Pin
Member 3993596-Oct-03 19:30
Member 3993596-Oct-03 19:30 
Does anyone knows how to set power button action in Window2000 & WinXP? I found the API WriteGlobalPwrPolicy() to do that. But, it can't work properly. After I involved this API the return value is nonzero. This is means this API is success. Even so, the system's global power button action doesn't have been change. The following code is my testing code, please help me to check it if it has any wrong. Or, you can tell me any tip to do it.

Testing code:
GLOBAL_POWER_POLICY gpp;<br />
 ReadGlobalPwrPolicy(&gpp); // get current setting.<br />
 gpp.user.PowerButtonAc.Action = (POWER_ACTION)2; //2:Sleep<br />
   <br />
 if(WriteGlobalPwrPolicy(&gpp) == 0)<br />
    TRACE(_T("Failed!\n"));<br />
 else<br />
    TRACE(_T("Successful!\n"));<br />
 ReadGlobalPwrPolicy(&gpp);<br />
 TRACE(_T("PowerButtonAc.Action:%d\n"), gpp.user.PowerButtonAc.Action);


Relation resource:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/power_management_functions.asp

Thanks for your help!
Best regards,
Ryan
GeneralRe: (MFC) Need a list w/ multiple columns and children Pin
Mike Dimmick6-Oct-03 23:28
Mike Dimmick6-Oct-03 23:28 
GeneralExcel Locale Issue Pin
Derek Waters6-Oct-03 17:39
Derek Waters6-Oct-03 17:39 
GeneralRe: Excel Locale Issue Pin
David Crow7-Oct-03 3:04
David Crow7-Oct-03 3:04 
Generalhelp me Pin
don7cry6-Oct-03 17:36
don7cry6-Oct-03 17:36 
GeneralRe: help me Pin
xxhimanshu7-Oct-03 0:34
xxhimanshu7-Oct-03 0:34 
Generalload picture example Pin
azusakt6-Oct-03 16:03
azusakt6-Oct-03 16:03 

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.