Advertisement
Advertisement
| 02.28.2008 at 12:00PM PST, ID: 23201638 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: |
void CMyColorDlg::OnPaint()
{
CPaintDC dc(this);
//Painting entire dlg area
CRect rect;
GetClientRect(&rect);
CBrush brush1(RGB(234,88,88));
dc.SelectObject(brush1);
dc.Rectangle(rect);
// button rectangular
CRect BtnRect;
m_btn.GetWindowRect(&BtnRect);
// painting the top part of dlg
CDialog::OnPaint();
CDC* pDC = GetWindowDC();
CRect CapRct;
GetWindowRect(&CapRct);
long myFillColour1 = RGB(149,58,49);
int x1 = GetSystemMetrics(SM_CXDLGFRAME) - 2;
int x2 = CapRct.Width() - GetSystemMetrics(SM_CXDLGFRAME) + 2;
int y1 = GetSystemMetrics(SM_CYDLGFRAME) - 2;
int y2 = - GetSystemMetrics(SM_CYDLGFRAME) + 22;
CapRct.left = x1;
CapRct.top = y1;
CapRct.right = x2;
CapRct.bottom = y2;
// where I need to exclude &BtnRect from painting
pDC->FillSolidRect(&CapRct, myFillColour1);
}
|