English
Source / code snippets

Control Calendar Sysmonthcal

 

Gemerkt/Separiert of http://www.rgh-soft.de/forum01/read.php?f=7&i=13972&t=13968
Author: RGH
SysMonthCal
-----------
 $H windows.ph
 $H Messages.ph
 $H commctrl.ph
Declare OldTest&,end%
Struct POINT =
x&,
y&
Struct SYSTEMTIME =
wYear%,
wMonth%,
wDayOfWeek%,
wDay%,
wHour%,
wMinute%,
wSecond%,
wMilliseconds%
Struct MCHITTESTINFO =
cbSize&,
pt!POINT,
uHit&,
st!SYSTEMTIME

Proc Get_MonthCalHit

    Declare DATA#, HIT%
    Dim DATA#,MCHITTESTINFO
    DATA#.cbSize& = SizeOf(DATA#)
    DATA#.pt!x& = %MouseX - 500
    DATA#.pt!y& = %MouseY - 150
    Var QT% = SendMessage(KAL1&,$100E,0,DATA#)  $100E = $1000 + 14 = HITTEST
    Var TEXT$ = st$(DATA#.st!wDay%)+"."+st$(DATA#.st!wMonth%)+"."+st$(DATA#.st!wYear%)
    Messagebox(TEXT$,"HITFLAG "+Str $(QT%),$40000)
    Dispose DATA#
    RETURN QT%

ENDPROC

WINDOW 0,0 - 800,600
Var KAL1& = Control("SysMonthCal32", "Kalender", 1342177280, 500, 150, 180, 406, %HWND, 0, %hInstance, 0)

WhileNot end%

    Waitinput

    If %Key = 2

        end% = 1

    Else

        Get_MonthCalHit

    EndIf

EndWhile

 
11/19/08  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.091 Views

Untitledvor 0 min.
Walter06/08/21
Steven01/02/17
Ernst10/07/16
Uwe Lang02/21/16
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie