Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
I am using the code to synchronize outlook and my application. Everything works fine.
Am using the following code to paint the color in a box in my application.
I would like to give the same color to the outlook appointment as the appointment is created by my application.

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 code paints the box in the application. How to get the same color (user defined) and add to the corresponding appointment in the outlook?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900