请问如何利用comctl32.dll来实现下拉列表框选日期的那种控件

flyinsea 2003-10-28 10:37:46
如题,需要做哪些工作?
...全文
170 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
flyinsea 2003-10-31
  • 打赏
  • 举报
回复
楼上的,那还要设计nvo_comctl_datetime iuoDateTime?

我下载了一个例子,可是在设计nvo用户对象时用到InitCommonControls,而且他设计的nvo用户对象还比较复杂,可是我自己设计时却说没有定义InitCommonControls,郁闷,哪位高手再指点我一下
qqjj7758 2003-10-30
  • 打赏
  • 举报
回复
forward
global type uo_comctl_datetime from userobject
end type
end forward

global type uo_comctl_datetime from userobject
integer width = 507
integer height = 100
userobjects objecttype = externalvisual!
long backcolor = 0
string classname = "sysdatetimepick32"
string libraryname = "comctl32.dll"
long style = 1174405120
end type
global uo_comctl_datetime uo_comctl_datetime

type variables
Private nvo_comctl_datetime iuoDateTime
end variables

forward prototypes
public subroutine of_getobject (ref nvo_comctl_datetime auoDateTimePicker)
end prototypes

public subroutine of_getobject (ref nvo_comctl_datetime auoDateTimePicker);auoDateTimePicker = This.iuoDateTime

RETURN

end subroutine

event constructor;This.iuoDateTime.of_SetHandle( Handle(This) )

RETURN 0

end event

on uo_comctl_datetime.create
end on

on uo_comctl_datetime.destroy
end on

flyinsea 2003-10-30
  • 打赏
  • 举报
回复
我是按lmby说的做的,可是为什么我看不到,怎样让他显示出来呢?
qqjj7758 2003-10-29
  • 打赏
  • 举报
回复
你给各地址我 我发各库给你 不过是PB9的
jdsnhan 2003-10-29
  • 打赏
  • 举报
回复
up.同意 lmby(鹿门布衣)

另外还有style属性控制格式。
lmby 2003-10-28
  • 打赏
  • 举报
回复
做一个user object.
dll name 为 comctl32.dll
class name 为 sysdatetimepick32
佣工7001 2003-10-28
  • 打赏
  • 举报
回复
直接插入ole控件就可以使用阿

1,108

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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