Re: Hello again Al or anybody

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi there Don,


I can tell you that the ID's created with WinClass are not compatible
with those of WinLib, however, the 'window handles' are!  This means
you can use many function calls for windows using WinClass even if the
windows were created with WinLib (now that you've got the two working
together).  The only trick is to get the actual handle using
WinLibs way of doing this -- last time i checked it was getHandle(), but
who knows by now :)  Once you get the handle you can pass it to
WinClass functions (in many cases).

An example would be with the SendMessage() call:

  atom hWnd,retv
  hWnd=WinLib:getHandle(winlib_id) --or however you are calling this
  retv=win:SendMessage(hWnd,MESSAGE,wParam,lParam) --a WinClass lib call

Note that you MUST use the winlib's id, not one created by winclass.

To get the handle for a window in WinClass, use:
  atom hWnd
  hWnd=Track:GetHandle(winclass_id)

It's also possible to create an ID in WinClass that refers to a window
created with WinLib, but to do this you'd have to create the window
in WinLib and then port it to another ID in WinClass by calling the
GetNextID() function in ReTrack.ew, then call SetHandle(), then
SetParentID().  You'd have to decide which lib to handle events with
i guess.  Note however i havent actually tried this (yet) hee hee.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu