Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to build a debugger Pin
ThianSeng16-Nov-06 23:31
ThianSeng16-Nov-06 23:31 
AnswerRe: How to build a debugger Pin
prasad_som17-Nov-06 1:01
prasad_som17-Nov-06 1:01 
QuestionCan U plz help me InstallShield Problem Pin
Jeeva Mary Varghese16-Nov-06 23:22
Jeeva Mary Varghese16-Nov-06 23:22 
AnswerRe: Can U plz help me InstallShield Problem Pin
Rage17-Nov-06 0:21
professionalRage17-Nov-06 0:21 
QuestionResize a Control inside a CSplitterWnd? Pin
Franken16-Nov-06 22:44
Franken16-Nov-06 22:44 
AnswerRe: Resize a Control inside a CSplitterWnd? Pin
Viorel.16-Nov-06 22:54
Viorel.16-Nov-06 22:54 
GeneralRe: Resize a Control inside a CSplitterWnd? Pin
Franken16-Nov-06 23:38
Franken16-Nov-06 23:38 
QuestionProblem in Background colouring of CStatic Pin
georgekjolly16-Nov-06 22:39
georgekjolly16-Nov-06 22:39 
Hai all,

I have a dialog based programme.

-> I have Created CCustomStatic from CStatic using class wizard.
-> I havent inserted any CStatic Resource.
-> I created my static window in OnInitDialog() of dialogbox

st.Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER,CRect(10,10,150,50),this);

-> After this I have added OnEraseBackground() in my CCustomStatic and Wrote the following code

BOOL CCustomStatic::OnEraseBkgnd(CDC* pDC)
{
TRACE("\n ERASE BACKGROUND");
RECT rc;
GetClientRect(&rc);
CBrush brush(RGB(255,0,0));
pDC->FillRect(&rc,&brush);

return TRUE;
}

->But I didnt get a Static with Red Color.

->But Later when I added OnPaint Message Handler in my CCustomStatic class , I got Red colored Static Control.

->Why this is happening So.

->Here What is special with OnPaint() in CCustomStatic

Please Help me
Thanks in Advance
George



AnswerRe: Problem in Background colouring of CStatic Pin
Steve Thresher17-Nov-06 3:16
Steve Thresher17-Nov-06 3:16 
GeneralRe: Problem in Background colouring of CStatic Pin
georgekjolly17-Nov-06 17:20
georgekjolly17-Nov-06 17:20 
QuestionChallenging Interview Question Pin
AryaSoft16-Nov-06 22:33
AryaSoft16-Nov-06 22:33 
AnswerRe: Challenging Interview Question Pin
toxcct16-Nov-06 22:46
toxcct16-Nov-06 22:46 
GeneralRe: Challenging Interview Question Pin
David Crow17-Nov-06 3:52
David Crow17-Nov-06 3:52 
JokeRe: Challenging Interview Question Pin
ThatsAlok16-Nov-06 22:48
ThatsAlok16-Nov-06 22:48 
AnswerDND Pin
Rajesh R Subramanian16-Nov-06 22:49
professionalRajesh R Subramanian16-Nov-06 22:49 
AnswerRe: Challenging Interview Question Pin
Hamid_RT16-Nov-06 23:08
Hamid_RT16-Nov-06 23:08 
AnswerRe: Challenging Interview Question Pin
Christian Graus16-Nov-06 23:46
protectorChristian Graus16-Nov-06 23:46 
AnswerRe: Challenging Interview Question Pin
Rage17-Nov-06 0:17
professionalRage17-Nov-06 0:17 
QuestionHow Can I View the Dll file function and return Types or Params types Pin
Shi Zhu16-Nov-06 22:06
Shi Zhu16-Nov-06 22:06 
AnswerRe: How Can I View the Dll file function and return Types or Params types Pin
Mr.Brainley16-Nov-06 22:33
Mr.Brainley16-Nov-06 22:33 
AnswerRe: How Can I View the Dll file function and return Types or Params types Pin
ThatsAlok16-Nov-06 22:49
ThatsAlok16-Nov-06 22:49 
QuestionHow to check which one is inputting now? Pin
lpy_chl16-Nov-06 21:27
lpy_chl16-Nov-06 21:27 
AnswerRe: How to check which one is inputting now? Pin
Christian Graus16-Nov-06 21:42
protectorChristian Graus16-Nov-06 21:42 
QuestionRe: How to check which one is inputting now? Pin
Rajesh R Subramanian16-Nov-06 22:16
professionalRajesh R Subramanian16-Nov-06 22:16 
AnswerRe: How to check which one is inputting now? Pin
ThatsAlok16-Nov-06 22:50
ThatsAlok16-Nov-06 22:50 

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.