Click here to Skip to main content
16,018,664 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: writing DWORD to serial port Pin
Cedric Moonen22-Feb-07 20:21
Cedric Moonen22-Feb-07 20:21 
Questionmerge sort Pin
meet_kirankumar22-Feb-07 19:26
meet_kirankumar22-Feb-07 19:26 
QuestionRe: merge sort Pin
prasad_som22-Feb-07 19:34
prasad_som22-Feb-07 19:34 
AnswerRe: merge sort Pin
Nibu babu thomas22-Feb-07 19:38
Nibu babu thomas22-Feb-07 19:38 
Questionchange of CStatic control background color. How ? Pin
sakthimuthu22-Feb-07 19:02
sakthimuthu22-Feb-07 19:02 
AnswerRe: change of CStatic control background color. How ? Pin
prasad_som22-Feb-07 19:07
prasad_som22-Feb-07 19:07 
GeneralRe: change of CStatic control background color. How ? Pin
sakthimuthu22-Feb-07 19:19
sakthimuthu22-Feb-07 19:19 
AnswerRe: change of CStatic control background color. How ? Pin
prasad_som22-Feb-07 19:27
prasad_som22-Feb-07 19:27 
You said in your OP, you want change background color of CStatic.
Try this code,
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(nCtlColor==CTLCOLOR_STATIC)
{
    pDC->SetBkMode(TRANSPARENT);
    hbr = CreateSolidBrush(RGB(255,255,255));
}
return hbr;
}



GeneralRe: change of CStatic control background color. How ? Pin
sakthimuthu22-Feb-07 19:32
sakthimuthu22-Feb-07 19:32 
QuestionVC++ Pin
Rocky Oswal22-Feb-07 18:56
Rocky Oswal22-Feb-07 18:56 
AnswerRe: VC++ Pin
C Mahesh22-Feb-07 19:03
C Mahesh22-Feb-07 19:03 
QuestionProblem in dialog box scrolling [modified] Pin
C Mahesh22-Feb-07 17:58
C Mahesh22-Feb-07 17:58 
AnswerRe: Problem in dialog box scrolling Pin
MuraliKrishnaP22-Feb-07 20:41
MuraliKrishnaP22-Feb-07 20:41 
QuestionTimer configuration in VC++ Pin
shriram_ch22-Feb-07 16:53
shriram_ch22-Feb-07 16:53 
AnswerRe: Timer configuration in VC++ Pin
ThatsAlok22-Feb-07 17:33
ThatsAlok22-Feb-07 17:33 
GeneralRe: Timer configuration in VC++ Pin
#realJSOP22-Feb-07 23:34
professional#realJSOP22-Feb-07 23:34 
AnswerRe: Timer configuration in VC++ Pin
#realJSOP22-Feb-07 23:44
professional#realJSOP22-Feb-07 23:44 
AnswerRe: Timer configuration in VC++ Pin
cmk23-Feb-07 5:47
cmk23-Feb-07 5:47 
QuestionSocket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 8:59
FreeCastle22-Feb-07 8:59 
AnswerRe: Socket question: When does a client connect to a server? Pin
Mark Salsbery22-Feb-07 9:13
Mark Salsbery22-Feb-07 9:13 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 9:57
FreeCastle22-Feb-07 9:57 
GeneralRe: Socket question: When does a client connect to a server? Pin
led mike22-Feb-07 10:02
led mike22-Feb-07 10:02 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 10:07
FreeCastle22-Feb-07 10:07 
GeneralRe: Socket question: When does a client connect to a server? Pin
Mark Salsbery22-Feb-07 10:18
Mark Salsbery22-Feb-07 10:18 
GeneralRe: Socket question: When does a client connect to a server? Pin
FreeCastle22-Feb-07 11:12
FreeCastle22-Feb-07 11:12 

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.