Module: VRDdeServer
Constant Summary
Constants included
from DDElParam
DDElParam::FreeDDElParam, DDElParam::PackDDElParam, DDElParam::ReuseDDElParam, DDElParam::UnpackDDElParam
VRDdeConversation::WM_DDE_ACK, VRDdeConversation::WM_DDE_ADVISE, VRDdeConversation::WM_DDE_DATA, VRDdeConversation::WM_DDE_EXECUTE, VRDdeConversation::WM_DDE_INITIATE, VRDdeConversation::WM_DDE_POKE, VRDdeConversation::WM_DDE_REQUEST, VRDdeConversation::WM_DDE_TERMINATE, VRDdeConversation::WM_DDE_UNADVISE
VRMessageHandler::PREHANDLERSTR
Instance Method Summary
collapse
Methods included from DDElParam
#freeDDElParam, #packDDElParam, #reuseDDElParam, #unpackDDElParam
#sendDDEAck
#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching
Instance Method Details
#addDDEAppTopic(appname, topic) ⇒ Object
152
153
154
|
# File 'lib/vr/vrdde.rb', line 152
def addDDEAppTopic(appname,topic)
@_vr_ddeacceptable.push([appname,topic])
end
|
#delDDEAppTopic(appname, topic) ⇒ Object
155
156
157
|
# File 'lib/vr/vrdde.rb', line 155
def delDDEAppTopic(appname,topic)
@_vr_ddeacceptable.delete([appname,topic])
end
|
#self__ddeInitiate(shwnd, aApp, aTopic) ⇒ Object
136
137
138
139
140
141
142
143
144
|
# File 'lib/vr/vrdde.rb', line 136
def self__ddeInitiate(shwnd,aApp,aTopic)
p=[GAtom::GetName(aApp),GAtom::GetName(aTopic)]
return unless @_vr_ddeacceptable.index(p)
@_vr_clients[shwnd] = [shwnd] + p
r=nil
r=selfmsg_dispatching("ddeinitiate",shwnd,p[0],p[1])
SMSG::SendMessage.call shwnd,WM_DDE_ACK,self.hWnd,MAKELPARAM(aApp,aTopic)
end
|
#self__ddeTerminate(shwnd) ⇒ Object
146
147
148
149
150
|
# File 'lib/vr/vrdde.rb', line 146
def self__ddeTerminate(shwnd)
selfmsg_dispatching("ddeterminate",shwnd)
SMSG::PostMessage.call shwnd,WM_DDE_TERMINATE,self.hWnd,0
@_vr_clients.delete(shwnd)
end
|
#self_ddeinitiate(*args) ⇒ Object
159
|
# File 'lib/vr/vrdde.rb', line 159
def self_ddeinitiate(*args) end
|
#self_ddeterminate(*arg) ⇒ Object
160
|
# File 'lib/vr/vrdde.rb', line 160
def self_ddeterminate(*arg) end
|
131
132
133
134
|
# File 'lib/vr/vrdde.rb', line 131
def vrinit
super
ddeserverinit
end
|