Very simple CorelDRAW CPG window program and source code

```

bool cql_OutlineColor(corel *cdr)
{
auto col = cdr->CreateCMYKColor(0, 100, 100, 0);
auto s = cdr->ActiveShape;
col-> CopyAssign(s->Outline->Color);
col->ConvertToRGB();

auto r = col->RGBRed;
auto g = col->RGBGreen;
auto b = col->RGBBlue;

char buf[256] = { 0 };
sprintf(buf, "@Outline.Color.rgb[.r='%d' And .g='%d' And .b='%d']", r, g, b);
auto cql = _bstr_t(buf);
auto sr = cdr->ActivePage->Shapes->FindShapes(_bstr_t(), cdrNoShape, VARIANT_TRUE, cql);
sr->CreateSelection();

return true;
}

````

Complete code examples and exe programs, friends who like to study can download them by clicking the link

github.com/.../Very simple Lanya CPG window program and source code.zip