MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / GetHistoryColor

Method GetHistoryColor

ColorCop/ColorCopDlg.cpp:1950–1966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1948}
1949
1950void 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
1968void CColorCopDlg::AdvanceColorHistory() {
1969 // this function will advance the colors in the color history..

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected