Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - FillSolidRect
Search - FillSolidRect - List
// CDC::FillSolidRect is faster, but it does not handle 8-bit color depth VERIFY(brush.CreateSolidBrush( RGB(r+rStep*iOnBand, g + gStep*iOnBand, b + bStep * iOnBand))) pDC->FillRect(&rectFill,&brush) VERIFY(brush.DeleteObject()) if(rectFill.bottom > rect.bottom)
Date : 2008-10-13 Size : 88.06kb User : 郭文三

// CDC::FillSolidRect is faster, but it does not handle 8-bit color depth VERIFY(brush.CreateSolidBrush( RGB(r+rStep*iOnBand, g + gStep*iOnBand, b + bStep * iOnBand))) pDC->FillRect(&rectFill,&brush) VERIFY(brush.DeleteObject()) if(rectFill.bottom > rect.bottom)- // CDC::FillSolidRect is faster, but it does not handle 8-bit color depth VERIFY(brush.CreateSolidBrush( RGB(r+rStep*iOnBand, g+ gStep*iOnBand, b+ bStep* iOnBand))) pDC->FillRect(&rectFill,&brush) VERIFY(brush.DeleteObject()) if(rectFill.bottom > rect.bottom)
Date : 2025-07-01 Size : 88kb User : 郭文三

To get this task done, my first instinct was to catch the WM_ERASEBKGND in CMainFrame and do the FillSolidRect there. But I soon realized that approach didn t do anything other than make the frame flicker and show red only when it s being resized, otherwise the gray background was completely intact. Not exactly what I was looking for. Suddenly it became a little mystery. Why doesn t the background of the frame change when I fill it with a color in the frame s WM_ERASEBKGND handler? So I went on a hunt, I went through a lot of the CMDIFrameWnd and CFrameWnd code looking for methods that would draw on the frame, and there was not much there. I finally ended up at CMainFrame::OnCreate method, I set a breakpoint and stepped through the CMDIFrameWnd::OnCreate method. After what seemed to be hours of searching I came across the following code in CMDIFrameWnd::CreateClient:
Date : 2025-07-01 Size : 49kb User : kamalraj.s
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.