| |
|
|
 Ernst | Salut, je muss den Double-cliquez sur auswerten, mais je bekomme aucun message ?
$H messages.ph
Fenêtre 100,300-600,500
Var cal&=Contrôle("SysMonthCal32",»,$54000000,200,40,178,194,%hwnd,0,%HINSTANCE,$1)
tandis que 1
getmessage
IF (%message = ~WM_LBUTTONDBLCLK) and (%mwnd = cal&)
imprimer "OK"
endif
Wend
end
~wm_rbuttondown peux je abfragen et ~wm_lbuttondown. peux mir quelqu'un aider ? Salut Ernst |
|
|
| |
|
|
|
 E.T. | exposition la fois ici: [...]  Vlt. funzt cela oui aussi avec dem le calendrier ou bien hilft wenigstens plus  |
|
|
| XProfan X3Grüße aus Sachsen... Mario WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte... | 08.10.2016 ▲ |
|
|
|
|
 Ernst | malheureusement non, là je oui aucun wm_lbuttondblclk-Message bekomme, qui je intercepter könnte; peut-être ou bien wahrscheinlich gibt's cet message beim Calender-control gar pas. je hab es ensuite sur qui Auswertung qui beim Doppelclick zweifachen wm_lbuttondown-Message erledigt.
{$iq}
Déclarer dc#, dcl&
Faible dc#,4
LONG dc#,0 = 0
dcl&= addr(dc#)
declare dtp#
dim dtp#,20
Déclarer date$
usermessages 3000
Fenêtre 100,300-600,500
Var cal&=Contrôle("SysMonthCal32",»,$54000000,200,40,178,194,%hwnd,0,%HINSTANCE,$1)
~setWindowLong(cal&,~gwl_userData,~setWindowLong(cal&,~gwl_wndProc,procaddr(calProc,4)))
settimer ~GetDoubleClickTime()
tandis que 1
Waitinput
IF (%umessage = 3000) or (%clé = 13)
SendMessage(cal&,~MCM_GETCURSEL,0,dtp#)
date$ = format$("00",word(dtp#,6)) + "." +format$("00",word(dtp#,2)) + "." + format$("0000",word(dtp#,0))
LONG dc#,0 = 0
pause
ElseIf %wmtimer
LONG dc#,0 = 0
EndIf
Endwhile
killtimer
dispose dtp#
dispose dc#
imprimer date$
waitkey
Fin
'**********************************************************************************************************
nProc calProc
parameters Wnd&, Msg&, wParam&, lParam&
global dcl&
si Msg& = ~WM_LBUTTONDOWN
IF LONG(dcl&,0)=0
LONG dcl&,0 = 1
D'autre
sendmessage(~getparent(wnd&),3000,0,0)
Retour 0
EndIf
endif
return ~callWindowProc(~getWindowLong(wnd&,~gwl_userData),Wnd&, Msg&, wParam&, lParam&)
ENDPROC
|
|
|
| |
|
|
|
 Jörg Sellmeyer | seulement la fois so gefragt: cela profaneigene Kalendercontrol reicht pour deine Zwecke pas aus? |
|
|
| |
|
|
|
 Ernst | @Jörg grundsätzlich oui, im Besonderen non: j'ai une Warenwirtschafts-Software courir et bastle mir une separate Applikation en supplément, wobei qui Elemente (au-dessous z.B. cet Calender-control) nahezu ident son devoir, avec cela qui service possible juste ablaufen peux. |
|
|
| |
|
|