[comp.os.os2.programmer] Help with PM programming

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

Hi There I am honored to be the first to post a message to this new newsgroup.  The fact that nobody else has since it's creation makes me worried any one 
will read this but Here Goes ...

I have been programming with PM and Microsoft C for the past few weeks.

I have a window with a dialog box. This box has about 12 entry field controls
and same number of static text controls.  I want to be able to click on an
entry field and have the contents of the clipboard be copied into the same 
entry field that has just been clicked on.  I thought this would be easy.

After all there is WinSendDlgItem with EM_PASTE message. as in:

		case EntryFieldNumber:

		WinSendDlgItem(EntryFieldNumber, EM_PASTE, NULL,NULL);
		break;

However this always writes the contents of the clipboard twice to the same entry field and then clears the clipboard.

I have tried all sorts of ways to get around this nothing is working right or
sensibly.   D

Does anyone out there have an answer or a friend at Microsoft with the answer??


Any help or reply would be appreciated.  


Thanks a lot 

JeffGraber

kdmurphy@vax1.tcd.ie (Killian Murphy) (07/07/90)

Hello there,

In article <112283@linus.mitre.org>, jeff@lid.mitre.org (Jeff Graber) writes: 
> I have been programming with PM and Microsoft C for the past few weeks.

	I've been trying to put together a WIMP environment in the last
few weeks,using a program call 'EASEL OS/2 EE'(presumably someone's TM,
hopefully they won't mind).

	Anyway,it provides a very high level language for doing this kind
of work.It is very easy to use and all that,but more importantly,as far as
I remember it provides very easy access to the PM clipboard.

	I know very little about the internals of the operation,etc.,but I
thought you might be interested to hear about this anyway.

(> Any help or reply would be appreciated.):-)  


If you're particularly interested,e-mail me (address below) and I'll find out
whatever I can for you,OK?

In the meantime,good luck!

Ciao,
Killian Murphy.

+-------------------------------+---------------------------------------------+
|Killian Murphy			|Romeo Rodriguez squares his shoulders,curses |
|Computer Science,TCD,Ireland.	|Jesus,puts a comb through his black pony tail|
|e-mail:kdmurphy@vax1.tcd.ie	|	--Lou Reed,Romeo Had Juliet (New York)|
+-------------------------------+---------------------------------------------+
-- 

+-------------------------------+---------------------------------------------+
|Killian Murphy			|Romeo Rodriguez squares his shoulders,curses |
|Computer Science,TCD,Ireland.	|Jesus,puts a comb through his black pony tail|
|e-mail:kdmurphy@vax1.tcd.ie	|	--Lou Reed,Romeo Had Juliet (New York)|
+-------------------------------+---------------------------------------------+