系统日历控件改变日期后触发的事件

zyhtz 2003-07-08 01:28:48
系统日历控件改变日期后触发什么事件(通过调用comctl32.dll)
看了一下VC里面的ID号是DT_DATETIMECHANGE
在PB里怎么获取这个控件改变日期后的事件
应该在other里面进行吧。
各位指点
...全文
420 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
keyssoft 2003-07-08
  • 打赏
  • 举报
回复
typedef stc_nmhdr from structure
ulong hwndfrom
uint idfrom
uint code
end type

typedef stc_systemtime from structure
int wyear
int wmonth
int wdayofweek
int wday
int whour
int wminute
int wsecond
int wmillisecond
end type

typedef stc_nmselchange from structure
stc_nmhdr nmhdr
stc_systemtime stselstart
stc_systemtime stselend
end type

Subroutine RtlMoveMemory(ref stc_nmselchange,ulong source,ulong size) library "kernel32.dll"

event other
stc_nmselchange lstc_selchange

if message.number=78 /*WM_NOTIFY*/ then
RtlMoveMemory(lstc_selchange,lParam,44/*sizeof(NMSELCHANGE)*/)
if lstc_selchange.nmhdr.code=-749 /*MCN_SELCHANGE*/ then
...
end if
end if
end event
klbt 2003-07-08
  • 打赏
  • 举报
回复
PB中好象没有“系统日历”这个控件呀?!

604

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 控件与界面
社区管理员
  • 控件与界面社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧