| 1948 | } |
| 1949 | |
| 1950 | void CColorCopDlg::GetHistoryColor(int Cindex) { |
| 1951 | // this function sets the current color |
| 1952 | // to the history color which was clicked on |
| 1953 | |
| 1954 | if (RGB(m_Reddec, m_Greendec, m_Bluedec) != ColorHistory[Cindex]) { |
| 1955 | // the color is different. get it |
| 1956 | |
| 1957 | m_Reddec = GetRValue(ColorHistory[Cindex]); |
| 1958 | m_Greendec = GetGValue(ColorHistory[Cindex]); |
| 1959 | m_Bluedec = GetBValue(ColorHistory[Cindex]); |
| 1960 | |
| 1961 | UpdateData(false); // update vars |
| 1962 | OnconvertRGB(); |
| 1963 | CalcColorPal(); |
| 1964 | OnCopytoclip(); |
| 1965 | } |
| 1966 | } |
| 1967 | |
| 1968 | void CColorCopDlg::AdvanceColorHistory() { |
| 1969 | // this function will advance the colors in the color history.. |
nothing calls this directly
no outgoing calls
no test coverage detected