My application has real time sync with the outlook. I would like to set the color category of the particular appointment in Outlook. The appointment color will be chosen in the application. And it is being shown in the small box. How to apply the same color in the outlook appointment from my application? Am using the following code to paint the small box.
hDC = GetDC(hCtrl);
GetClientRect (hCtrl, &rect);
lbrush.lbStyle = BS_SOLID;
lbrush.lbColor = (tempact.color) ? tempact.color : GetProjectColor(project);
lbrush.lbHatch = HS_VERTICAL;
hOldBrush = (HBRUSH)SelectObject(hDC, CreateBrushIndirect(&lbrush));
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)