Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - [solved]Mouse click question.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved]Mouse click question.

 Post Reply Post Reply
Author
Message
u8702656 View Drop Down
Groupie
Groupie


Joined: 03 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote u8702656 Quote  Post ReplyReply Direct Link To This Post Topic: [solved]Mouse click question.
    Posted: 10 September 2009 at 11:31pm
I set up CXTPCalendarControl object directly on dialog.
Often as me when click Cell, Cell has not shown that is chosen, sometimes all right.
What do I do few?
 
The following is my code:
.h>
   CXTPCalendarControl m_ctrlCalendar;
 
.cpp>
   OnInitial()
   {
    .................
CXTPClientRect rcCalendar(this);
 CXTPWindowRect rcOK(GetDlgItem(IDOK));
 ScreenToClient(&rcOK);
 rcCalendar.right = rcOK.left;
 rcCalendar.DeflateRect(7, 7, 7, 7);
 m_ctrlCalendar.Create(
  WS_CHILD | WS_TABSTOP | WS_VISIBLE, rcCalendar, this, IDC_CALENDAR_CTRL_ID);
 CXTPCalendarControl::CUpdateContext updateCNT(&m_ctrlCalendar);
 
 m_ctrlCalendar.SwitchActiveView(xtpCalendarWorkWeekView);
 CXTPCalendarDayView* pDayView = (CXTPCalendarDayView*)m_ctrlCalendar.GetDayView();
  if (pDayView)
 {
      pDayView->ScrollToWorkDayBegin();
 } 
 m_ctrlCalendar.Populate();
 m_ctrlCalendar.SetTheme(new CXTPCalendarThemeOffice2007());
 m_ctrlCalendar.MoveWindow(left,
         top,
         width,
         height);
 int nWWMask = 0;
 for (int i = 0; i < 7; i++)
 {
  nWWMask |=  CXTPCalendarUtils::GetDayOfWeekMask(i+1);   
 }
 m_ctrlCalendar.SetWorkWeekMask(nWWMask);
 
.................
    }
 
 
Back to Top
u8702656 View Drop Down
Groupie
Groupie


Joined: 03 September 2009
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote u8702656 Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2009 at 4:11am
I have found the reason.
There is hidden component influence Genius mouse information on dialog.
 
 
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.