Announcement

Collapse
No announcement yet.

Calendar.BAS - Sample how to put the BOLD Dates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael Mattias
    replied
    > would be straight SDK not DDT code.

    It's a sad day when you have to ask if working code will be useful just because it's written SDK-Style.

    Leave a comment:


  • Dominic Mitchell
    replied
    I can generated an example that shows how to do this using the control from the Windows common controls library. It, however, would be straight SDK not DDT code.

    Leave a comment:


  • Calendar.BAS - Sample how to put the BOLD Dates

    Hi,

    I have had a look at the new MSCOMCT2.OCX MonthView-Control.
    But I had no chance to set the BOLD Days.

    Now I found a example in PBWin\samples\Ddt\Calendar with win32API.INC.

    There I found infos ...

    Code:
    CASE %WM_NOTIFY
            ...     
            IF ... = %MCN_SELCHANGE THEN...
    so i thought, OK if Date change gives a %WM_NOTIFY + %MCN_SELCHANGE
    a second block under in the CASE %WM_NOTIFY should do it:

    Code:
    CASE %WM_NOTIFY
            ...
            IF @pNMSC.hdr.code = %MCN_SELCHANGE THEN
                 ...
            end if
    
            IF @pNMSC.hdr.code = %MCN_GETDAYSTATE THEN
                 msgbox "..."
            end if
    but this will never raise a msgbox. The next problem ist that a new datestate question (change of shown month) will of course change the date ...

    Its so this hole activex stuff ...

    Does someone have a working example on the newer MSComCt2.OCX calendar ? I am looking on the generated COM Code and don't find the right way in.
Working...
X