Module: VRDdeConversation

Included in:
VRDdeClient, VRDdeServer
Defined in:
lib/vr/vrdde.rb

Defined Under Namespace

Classes: DDEAckFlags

Constant Summary collapse

WM_DDE_INITIATE =

VRDdeConversation

Utilities for DDE conversation.

Methods

— sendDDEAck(shwnd,aItem,retcode=0,ack=true,busy=false)

Sends DDE_ACK message to shwnd.

VRDdeConversation::DDEAckFlags

This is a capsule of return code,ack flag, busy flag for DDE_ACK message

Attributes

— retcode

8bit value.

— ack

DDE request is accepted or not.

— busy

busy or not.
0x3e0
WM_DDE_TERMINATE =
0x3e1
WM_DDE_ADVISE =
0x3e2
WM_DDE_UNADVISE =
0x3e3
WM_DDE_ACK =
0x3e4
WM_DDE_DATA =
0x3e5
WM_DDE_REQUEST =
0x3e6
WM_DDE_POKE =
0x3e7
WM_DDE_EXECUTE =
0x3e8

Instance Method Summary collapse

Instance Method Details

#sendDDEAck(shwnd, aItem, retcode = 0, ack = true, busy = false) ⇒ Object



92
93
94
95
96
97
98
# File 'lib/vr/vrdde.rb', line 92

def sendDDEAck(shwnd,aItem,retcode=0,ack=true,busy=false)
  r = retcode & 0xff
  r |= 0x8000 if ack 
  r |= 0x4000 if busy 
  lparam = packDDElParam(WM_DDE_ACK,r,aItem)
  SMSG::PostMessage.call shwnd,WM_DDE_ACK, self.hWnd,lparam
end