[comp.os.os2] Entry field controls

jeff@lid.mitre.org (Jeff Graber) (07/03/90)

HELP!!! Can anyone out there help us?  I am programming in OS/2 PM
with Microsoft C .  I have created a dialog box with a bunch of 
entry field controls.  I want to click with the mouse on an entry field
control and have the contents of the clipboard copied to the same
entry field.  I thought this would be easy as there is :

	WinSendDlgItem (entryfield number, EM_PASTE, NULL,NULL)

But lo and behold when I do this it always writes the contents of the
clipboard twice!!  And then clears the clipboard.  Since this discovery,
I have tried all sorts of ways to prevent this.  I have tried to capture
WM_CHAR messages, tried writing the clipboard to a buffer and then 
writing the buffer to the control.  I have tried to follow the PASTE message with a WinSetFocus.  I have tried overlaying one entry field with another, but then I can't edit the entry field.  

I have tried counters, you name it.  

Could someone please tell me if it is possible to click with the mouse in an
entry field and write to that same entry field only once.  If so, how is
it done.??????

Thank you.  Please some one at Microsoft must be reading this.  Or some OS/2 PM guru must be perusing this......


Thanks of a grateful nation


Jeff Graber