INT_PTR RegisterColour(WPARAM wParam, LPARAM lParam) { ColourIDW temp; if (!ConvertColourID((ColourID*)wParam, &temp)) return -1; return sttRegisterColourWorker(&temp, (int)lParam); }
INT_PTR GetColour(WPARAM wParam, LPARAM) { ColourIDW temp; if (!ConvertColourID((ColourID*)wParam, &temp)) return -1; return sttGetColourWorker(&temp); }
int GetColour(WPARAM wParam, LPARAM lParam) { ColourID *colour_id = (ColourID *)wParam; ColourIDW colour_id_w; ConvertColourID(colour_id, &colour_id_w); return GetColourW((WPARAM)&colour_id_w, 0); }