Group:  Microsoft Outlook » microsoft.public.outlook.program_addins
Thread: Calendar View

Geek News

Calendar View
tonyl <tonyl[ at ]outblaze.com> 4/25/2006 3:50:08 AM
Hi,

Question on the day / week / month calendar view.

How does a outlook addin know the date range of the calendar view showing?
If day view, the view will show the range in time, how does the addin
know from when to when?
If week view, the view will show the range of a week, how does the addin
know which week that the view is showing?
If Month view, the view will show a month, but which month the view is
showing?

Regards,
Tony

Re: Calendar View
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 4/25/2006 6:07:38 PM
The addin doesn't know. Outlook exposes no information about what dates are currently displayed in the calendar.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"tonyl" <tonyl[ at ]outblaze.com> wrote in message news:9d0a029613938c83675890cffde[ at ]news.microsoft.com...
[Quoted Text]
> Hi,
>
> Question on the day / week / month calendar view.
>
> How does a outlook addin know the date range of the calendar view showing?
> If day view, the view will show the range in time, how does the addin
> know from when to when?
> If week view, the view will show the range of a week, how does the addin
> know which week that the view is showing?
> If Month view, the view will show a month, but which month the view is
> showing?
>
> Regards,
> Tony
>
>
Re: Calendar View
Michael Bauer <mb[ at ]mvps.org> 4/26/2006 5:17:34 AM
Am Tue, 25 Apr 2006 14:07:38 -0400 schrieb Sue Mosher [MVP-Outlook]:

Tony, a workaround would be first to determine which view is the current
one. For that you can check which of the buttons has the
State=msoButtonDown.

Then create an Appointment and get its Start and End dates/times. In Day
View e.g. you will get the selected date and times, in Week View you´ll get
the selected day. By knowing that you can calculate the week´s Monday and
Sunday. It similar works for Month and Workweek View.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


[Quoted Text]
> The addin doesn't know. Outlook exposes no information about what dates
are currently displayed in the calendar.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net