![]()  | 
 
Hide time in month view | 
 
    Post Reply  
   | 
  
| Author | |
   
   dennisV  
   
   Senior Member  
   Joined: 07 October 2004 Location: Australia Status: Offline Points: 242  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Hide time in month viewPosted: 13 November 2009 at 7:11pm  | 
 
| 
   
    
   Hi! 
   
  Is it possible to completely hide start/end time in month view mode? Or have an option to output the description and hide time if there's not enough space to output both (currently on smaller displays, the time is shown but the description is hidden)? Thanks, Dennis  | 
 |
| 
   
     
     // W7 64 Ultimate SP1 
   
  // VS 2008 // CodeJock 16.2.3 (MFC)  | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 13 November 2009 at 7:54pm | 
 
| 
   
    
   Sure - try CalendarDemoStatic - https://forum.codejock.com/uploads/DemoVersion/CalendarDemoStatic.rar 
 
   
  and play with Options Pane - you will find MonthView-related setting for your case 
    | 
 |
![]()  | 
 |
   
   dennisV  
   
   Senior Member  
   Joined: 07 October 2004 Location: Australia Status: Offline Points: 242  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 November 2009 at 4:43pm | 
 
| 
   
    
   Is it the same sample as comes with 13.2.1? I didn't find any setting to completely hide both the start and end time, but I'll look again in case I missed it.
    
   
   | 
 |
| 
   
     
     // W7 64 Ultimate SP1 
   
  // VS 2008 // CodeJock 16.2.3 (MFC)  | 
 |
![]()  | 
 |
   
   mdoubson  
   
   Senior Member  
   Joined: 17 November 2008 Status: Offline Points: 1705  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 17 November 2009 at 5:00pm | 
 
| 
   
    
   Check void CXTPCalendarThemeOffice2007::CTOMonthViewDay::Draw(CCmdTarget* pObject, CDC* pDC)
 
   
  DWORD dwOpt = XTP_SAFE_GET3(GetTheme(), GetCalendarControl(), GetCalendarOptions(), dwAdditionalOptions, 0); BOOL bShowEndTime = XTP_SAFE_GET2(pViewEvent, GetCalendarControl(), MonthView_IsShowEndDate(), TRUE); BOOL bDrawStartTime = dwOpt & xtpCalendarOptMonthViewShowStartTimeAlways; BOOL bDrawEndTime = bShowEndTime && (dwOpt & xtpCalendarOptMonthViewShowEndTimeAlways);  | 
 |
![]()  | 
 |
   
   dennisV  
   
   Senior Member  
   Joined: 07 October 2004 Location: Australia Status: Offline Points: 242  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 18 November 2009 at 3:41pm | 
 
| 
   
    
   Looks good - thanks! :)
    
   
   | 
 |
| 
   
     
     // W7 64 Ultimate SP1 
   
  // VS 2008 // CodeJock 16.2.3 (MFC)  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |