CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 25

Threaded View

  1. #1
    Join Date
    Oct 2010
    Location
    Australia
    Posts
    98

    Month Calendar : output selected range to MessageBox - pls explain

    Hello,

    I have created a Month Calendar Control and have enabled MCS_MULTISELECT.

    I am trying to implement the MonthCal_GetSelRange() macro to capture a selected range in the Calendar Control. So far my switch looks like this:
    Code:
    case IDC_BTN_MOON:
                    {
                        SYSTEMTIME rng[2];
    
                        MonthCal_GetSelRange(hWndMonthCal, &rng);
    
    
                    }
    How do I get that range to display in a MessageBox?
    Code:
    MessageBox(hwndDlg, ??, 0);
    I have tried passing SYSTEMTIME WORDs ( rng.wDayOfWeek) but I simply cant get it right. I know it is likely that such usage is no good, but I am trying...

    I have been using the Method approach to creating the Month Calendar and other controls.
    Last edited by Morbane; October 19th, 2010 at 02:42 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured