Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Add own icon and show the icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add own icon and show the icon

 Post Reply Post Reply
Author
Message
bubken View Drop Down
Newbie
Newbie
Avatar

Joined: 26 June 2015
Location: Belgium
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote bubken Quote  Post ReplyReply Direct Link To This Post Topic: Add own icon and show the icon
    Posted: 26 June 2015 at 7:44am
Hi

I am using Xtreme Calendar Pro v13.
You can show a reminder, private, recurrence icon on the event line in the calendar.
But now I want to show an unread mail icon and a read mail icon.
I have searched and looked at the samples of Codejock but didn't found how I can easy add the own icons and show them on the event line.

Can anyone help me with this issue?
Or give me a simple example code to add and show icons on the event line?

Thank you
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (1) Thanks(1)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 18 August 2015 at 10:12am
With older XTP-Versions and Office 2007 Theme you could do it like that:

OnEvent_PrePopulate

pCustomIcons = pEvent->GetCustomIcons(); ASSERT(pCustomIcons);

pCustomIcons->AddIfNeed((UINT)IDI_GROUP);  < -  ICON-ID

I used the custom properties of an Event to determine:
pCustomProperties = pEvent->GetCustomProperties();

COleVariant oGroup;
VERIFY(pCustomProperties->GetProperty(_T("Group"), oGroup ));
bGroup = oGroup.boolVal;

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.