Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - JPG image in Day/Week Event Cell
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

JPG image in Day/Week Event Cell

 Post Reply Post Reply
Author
Message
stevemur2 View Drop Down
Newbie
Newbie


Joined: 29 March 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevemur2 Quote  Post ReplyReply Direct Link To This Post Topic: JPG image in Day/Week Event Cell
    Posted: 31 March 2008 at 12:41am
Great toolset Oleg, sserge and company.  Really terrific product.  I've got the RibbonBar and CalendarControl in my app and it's working well.
 
My question is this -- my only major customization is that I'd like to displa a JPG image (from thumbnail files stored on disk already) in the calendar event.  Assume I've already rescaled the image down to say a 32x32 icon, but that it's still in JPG format.    And assume I'm only going to be displaying as many of these as the cell allows.
 
Now, I know how to use the Deployment Wizard and recompile the DLL to use in my app. 
 
I've made a few customizations already in the display of events (e.g., eliminating the location field, conditional color-coding based on my app, etc.). 
 
Do you have any XTP function calls that can read JPGs straight from the disk, or do I need to use my own, e.g., http://www.codeproject.com/KB/graphics/cximage.aspx ? 
 
I assume I need to customize the various "Draw(" functions for the event itself (I'm using the Office2007 theme)... but if I do that, I can't figure out the best-practice method for incorporating that CXImage library into the excellent existing library that you've written. 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2008 at 1:06am
Hi,
Why you can't convert them to png ? jpg is not good format for icons.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
stevemur2 View Drop Down
Newbie
Newbie


Joined: 29 March 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevemur2 Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2008 at 1:09am

That's certainly one option -- it would be a bit of a performance hit though, but possibly acceptable. 

If we did have a file at say "c:\test.png" (just to keep it simple), can you give us an example of the kind of code we'd need in the event draw function(s)?
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.156 seconds.