Click here to Skip to main content
15,894,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: taskbar title for MFC application Pin
Mircea Grelus18-Oct-05 3:22
Mircea Grelus18-Oct-05 3:22 
QuestionMultiple Views with Activex Controls Pin
subramanyeswari18-Oct-05 2:26
subramanyeswari18-Oct-05 2:26 
AnswerRe: Multiple Views with Activex Controls Pin
Mircea Puiu18-Oct-05 3:09
Mircea Puiu18-Oct-05 3:09 
GeneralRe: Multiple Views with Activex Controls Pin
18-Oct-05 17:29
suss18-Oct-05 17:29 
GeneralRe: Multiple Views with Activex Controls Pin
Mircea Puiu18-Oct-05 19:41
Mircea Puiu18-Oct-05 19:41 
GeneralRe: Multiple Views with Activex Controls Pin
subramanyeswari18-Oct-05 18:12
subramanyeswari18-Oct-05 18:12 
GeneralRe: Multiple Views with Activex Controls Pin
Mircea Puiu18-Oct-05 20:07
Mircea Puiu18-Oct-05 20:07 
Questionwindows CE, change display contrast Pin
Member 64733418-Oct-05 2:00
Member 64733418-Oct-05 2:00 
Hello!
i'm trying to change the contrast of my windows CE 4.2 device.
After some search on the net i found some methods to change the contrast,
all based on ExtEscape() function. Unfortunately ExtEscape always returns 0
on my device, no matter what escape code i pass to it.
This is a snapshot of my code:

bool SetContrast(int nParam)
{
ContrastCmdInputParm ContrastParm;
int rc, fQueryEsc;

fQueryEsc = CONTRASTCOMMAND;
HDC hdc= GetDC(NULL);
rc = ExtEscape (hdc, QUERYESCSUPPORT, sizeof (fQueryEsc),
(LPSTR)&fQueryEsc, 0, 0);
if (rc == 0) {
// No support, fail.
ReleaseDC (NULL, hdc);
return false;
}
ContrastParm.command = CONTRAST_CMD_SET;
ContrastParm.parm = nParam;
int nCode= ExtEscape(hdc, CONTRASTCOMMAND, sizeof(ContrastCmdInputParm),
(LPCSTR)&ContrastParm, 0, NULL);
ReleaseDC(NULL, hdc);
return (nCode > 0);
}

This function always fail with no support.

Can anyone help me?


AnswerRe: windows CE, change display contrast Pin
vikas amin18-Oct-05 3:57
vikas amin18-Oct-05 3:57 
AnswerRe: windows CE, change display contrast Pin
vikas amin19-Oct-05 3:02
vikas amin19-Oct-05 3:02 
QuestionDebugging crash - HELP Pin
dharani18-Oct-05 1:43
dharani18-Oct-05 1:43 
AnswerRe: Debugging crash - HELP Pin
S. Senthil Kumar18-Oct-05 4:06
S. Senthil Kumar18-Oct-05 4:06 
QuestionHow to change color of push button Pin
aloktambi18-Oct-05 1:28
aloktambi18-Oct-05 1:28 
AnswerRe: How to change color of push button Pin
Iain Clarke, Warrior Programmer18-Oct-05 1:45
Iain Clarke, Warrior Programmer18-Oct-05 1:45 
GeneralRe: How to change color of push button Pin
ThatsAlok18-Oct-05 5:21
ThatsAlok18-Oct-05 5:21 
AnswerRe: How to change color of push button Pin
ThatsAlok18-Oct-05 5:24
ThatsAlok18-Oct-05 5:24 
QuestionCreate a window that never gets input focus Pin
Anonymous18-Oct-05 1:13
Anonymous18-Oct-05 1:13 
AnswerRe: Create a window that never gets input focus Pin
Trollslayer18-Oct-05 1:23
mentorTrollslayer18-Oct-05 1:23 
GeneralRe: Create a window that never gets input focus Pin
Anonymous18-Oct-05 1:45
Anonymous18-Oct-05 1:45 
AnswerRe: Create a window that never gets input focus Pin
Rage18-Oct-05 1:56
professionalRage18-Oct-05 1:56 
GeneralRe: Create a window that never gets input focus Pin
Anonymous18-Oct-05 2:21
Anonymous18-Oct-05 2:21 
GeneralRe: Create a window that never gets input focus Pin
Anonymous18-Oct-05 2:28
Anonymous18-Oct-05 2:28 
GeneralRe: Create a window that never gets input focus Pin
Anonymous18-Oct-05 2:55
Anonymous18-Oct-05 2:55 
QuestionProblem in using ADO in VC dlls Pin
snprani18-Oct-05 1:02
snprani18-Oct-05 1:02 
AnswerRe: Problem in using ADO in VC dlls Pin
John M. Drescher18-Oct-05 3:06
John M. Drescher18-Oct-05 3:06 

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.