Re: Month Calendar control: make dates bold?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi there Dan, how ya been?

I dont think it's that hard really but there are some structs to deal with.
I think you need to process the GETDAYSTATE notification also, where you'll
return a pointer to a DAYSTATE struct, that contains one or more
MONTHDAYSTATE values.

If no one else wants to post working code i'll work something out
if you need it.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"


danielmoyer wrote:
> 
> 
> > posted by: Jonas Temple <jtemple at yhti.net>
> >
> > Dan,
> >
> > If you want to set a single date then use SetSelectedDate() in Win32Lib.
> > If you want to set more than one day then you will need to use sendMessage
> > with MCM_SETDAYSTATE.  According to MSDN:
> >
> > lResult = SendMessage(        // returns LRESULT in lResult
> >      (HWND) hWndControl,      // handle to destination control
> >      (UINT) MCM_SETDAYSTATE,  // message ID
> >      (WPARAM) wParam,         // = (WPARAM) (int) iMonths;
> >      (LPARAM) lParam          // = (LPARAM) (LPMONTHDAYSTATE)
> lpDayStateArray;
> > );
> >
> > The iMonths says how many elements are in the lpDayStateArray.  The
> > lpDayStateArray is basically a DWORD where bits 1-31 relate to a day
> > in the month.  If the bit is on, the day is in bold.
> >
> > Jonas Temple
> > <a href="http://www.yhti.net/~jktemple">http://www.yhti.net/~jktemple</a>
> >
> 
> Thanks Jonas,
> 
> I've used the  SetSelectedDate() in Win32Lib to move the date around
> programmatically, but what I'm trying to do is not *set* the date, (as in
> make the calendar show that date with an ellipse around it), but rather make
> specified dates show up in bold print (so as to specify "something special"
> about those dates).
> 
> I copied a bunch of stuff like what you suggested above from the MS site,
> including "Processing the MCN_GETDAYSTATE Notification Message", and
> "MCN_GETDAYSTATE Notification ", "NMDAYSTATE Structure", "NMHDR Structure ",
> "SYSTEMTIME structure", etc, but I don't know how to translate it all (or
> even your  simpler suggestion) into Euphoria code.
> 
> Probably this is something that could/should be added to Win32Lib?
> 
> But in the meantime, any help from anyone in xlating the C stuff into
> Euphoria would be appreciated.
> 
> Dan
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu