Click here to Skip to main content
15,915,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multiple windows in MFC C++ Pin
Mazdak2-Feb-02 11:56
Mazdak2-Feb-02 11:56 
GeneralRe: multiple windows in MFC C++ Pin
Mazdak2-Feb-02 12:13
Mazdak2-Feb-02 12:13 
GeneralRe: multiple windows in MFC C++ Pin
2-Feb-02 12:18
suss2-Feb-02 12:18 
GeneralRe: multiple windows in MFC C++ Pin
alex.barylski2-Feb-02 13:19
alex.barylski2-Feb-02 13:19 
QuestionUsing CMsFlexGrid on other machines (without visual c++ installed)? Pin
DanYELL2-Feb-02 9:15
DanYELL2-Feb-02 9:15 
AnswerRe: Using CMsFlexGrid on other machines (without visual c++ installed)? Pin
Mazdak2-Feb-02 10:36
Mazdak2-Feb-02 10:36 
AnswerRe: Using CMsFlexGrid on other machines (without visual c++ installed)? Pin
Mazdak2-Feb-02 10:44
Mazdak2-Feb-02 10:44 
GeneralCalendar Week Problem Pin
Sonu Kapoor2-Feb-02 8:51
Sonu Kapoor2-Feb-02 8:51 
Hi Guys,

i am using the following code to calculate the Calendar Week, using Month Calendar Control (m_cal1).

in the heade file...
COleDateTime ActualWeek1;
COleDateTimeSpan Weekdiff1;


in the function OnSelchangeMonthcalendar1....
SYSTEMTIME sysTime;
m_cal1.GetCurSel(&sysTime);
ActualWeek1.SetDate(sysTime.wYear, sysTime.wMonth, sysTime.wDay);

COleDateTime ActualTempWeek1( sysTime.wYear, sysTime.wMonth, 0, 0, 0, 0 );
Weekdiff1 = ActualWeek1 - ActualTempWeek1;
week1 = Weekdiff1.GetDays()/7+1;

CString week;
week.Format("%d",week1);
AfxmessageBox(week);

If i use this code in my function OnSelchangeMonthcalendar1 and select a date, it always starts the week from wednesday and according to this it displays the wrong week.

So how can i get the correct calendar week ??


Best Regards

Sonu
GeneralRe: Calendar Week Problem Pin
wangyiming3-Feb-02 21:51
wangyiming3-Feb-02 21:51 
QuestionHow to use point to member function? Pin
Feng Qin2-Feb-02 7:27
Feng Qin2-Feb-02 7:27 
AnswerRe: How to use point to member function? Pin
Michael Dunn2-Feb-02 7:40
sitebuilderMichael Dunn2-Feb-02 7:40 
GeneralRe: How to use point to member function? Pin
Feng Qin2-Feb-02 18:08
Feng Qin2-Feb-02 18:08 
GeneralRe: How to use point to member function? Pin
Feng Qin2-Feb-02 19:23
Feng Qin2-Feb-02 19:23 
GeneralC in Visual C++ Pin
aleyah2-Feb-02 6:49
aleyah2-Feb-02 6:49 
GeneralRe: C in Visual C++ Pin
2-Feb-02 6:51
suss2-Feb-02 6:51 
Generalvery frustrating dialog error Pin
2-Feb-02 6:10
suss2-Feb-02 6:10 
GeneralRe: very frustrating dialog error Pin
2-Feb-02 12:05
suss2-Feb-02 12:05 
GeneralRe: very frustrating dialog error Pin
2-Feb-02 21:07
suss2-Feb-02 21:07 
GeneralRe: very frustrating dialog error Pin
3-Feb-02 5:44
suss3-Feb-02 5:44 
GeneralRe: very frustrating dialog error Pin
3-Feb-02 6:10
suss3-Feb-02 6:10 
GeneralMFC is Challenging :: C++ Pin
valikac2-Feb-02 5:59
valikac2-Feb-02 5:59 
GeneralRe: MFC is Challenging :: C++ Pin
Matt Gullett2-Feb-02 6:13
Matt Gullett2-Feb-02 6:13 
GeneralRe: MFC is Challenging :: C++ Pin
Jon Sagara2-Feb-02 8:35
Jon Sagara2-Feb-02 8:35 
GeneralRe: MFC is Challenging :: C++ Pin
alex.barylski2-Feb-02 13:34
alex.barylski2-Feb-02 13:34 
GeneralRe: MFC is Challenging :: C++ Pin
Shog92-Feb-02 15:11
sitebuilderShog92-Feb-02 15:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.