| 3432 | } |
| 3433 | |
| 3434 | void CColorCopDlg::ChangeColorSpace(bool bRGB) { |
| 3435 | CString txt; |
| 3436 | |
| 3437 | if (bRGB) { |
| 3438 | // Show Red |
| 3439 | GetDlgItem(IDC_RED)->ShowWindow(SW_SHOW); |
| 3440 | // Show Green |
| 3441 | GetDlgItem(IDC_GREEN)->ShowWindow(SW_SHOW); |
| 3442 | // Show Blue |
| 3443 | GetDlgItem(IDC_BLUE)->ShowWindow(SW_SHOW); |
| 3444 | // R |
| 3445 | txt.LoadString(IDS_R); |
| 3446 | m_Lbl1.SetWindowText(txt); |
| 3447 | // G |
| 3448 | txt.LoadString(IDS_G); |
| 3449 | m_Lbl2.SetWindowText(txt); |
| 3450 | // B |
| 3451 | txt.LoadString(IDS_B); |
| 3452 | m_Lbl3.SetWindowText(txt); |
| 3453 | // Hide 4th Label |
| 3454 | m_Lbl4.ShowWindow(SW_HIDE); |
| 3455 | // Hide Cyan |
| 3456 | GetDlgItem(IDC_CYAN)->ShowWindow(SW_HIDE); |
| 3457 | // Hide Magenta |
| 3458 | GetDlgItem(IDC_MAGENTA)->ShowWindow(SW_HIDE); |
| 3459 | // Hide Yellow |
| 3460 | GetDlgItem(IDC_YELLOW)->ShowWindow(SW_HIDE); |
| 3461 | // Hide Black |
| 3462 | GetDlgItem(IDC_BLACK)->ShowWindow(SW_HIDE); |
| 3463 | |
| 3464 | } else { |
| 3465 | // Show Cyan |
| 3466 | GetDlgItem(IDC_CYAN)->ShowWindow(SW_SHOW); |
| 3467 | // Show Magenta |
| 3468 | GetDlgItem(IDC_MAGENTA)->ShowWindow(SW_SHOW); |
| 3469 | // Show Yellow |
| 3470 | GetDlgItem(IDC_YELLOW)->ShowWindow(SW_SHOW); |
| 3471 | // Show Black |
| 3472 | GetDlgItem(IDC_BLACK)->ShowWindow(SW_SHOW); |
| 3473 | |
| 3474 | // C |
| 3475 | txt.LoadString(IDS_C); |
| 3476 | m_Lbl1.SetWindowText(txt); |
| 3477 | // M |
| 3478 | txt.LoadString(IDS_M); |
| 3479 | m_Lbl2.SetWindowText(txt); |
| 3480 | |
| 3481 | // Y |
| 3482 | txt.LoadString(IDS_Y); |
| 3483 | m_Lbl3.SetWindowText(txt); |
| 3484 | |
| 3485 | // K |
| 3486 | txt.LoadString(IDS_K); |
| 3487 | m_Lbl4.SetWindowText(txt); |
| 3488 | |
| 3489 | m_Lbl4.ShowWindow(SW_SHOW); |
| 3490 | |
| 3491 | // Hide Red |
nothing calls this directly
no outgoing calls
no test coverage detected