Author |
Topic  |
|
marko
Germany
112 Posts |
Posted - 02/26/2001 : 05:32:07 AM
|
Hi,
does anybody know how to get the window name of a window which was made with the command win -t data uname or from within a user dll. Unfortunately the new window name 'uname' might already exist. So, Origin chooses another appropriate string instead.
In a normal labtalk script the real name of the created window can be accessed by '%h' since the window gets the active window automatically.
BUT, how to achieve this from within a user dll where the window is created with a command like
SendMessage (h,WM_USER,0,lpString('win -t data uname'));
How to access the variable '%h' from a user dll, or which function should be used to ask for the name of the active window???
Regards, Marko |
|
greg
USA
1379 Posts |
Posted - 02/26/2001 : 1:38:02 PM
|
Use: lpfn(hWnd, WCB_GET_STRING, (LPSTR)szTemp, 7);
Origin Strings are enumerated from A=0 to Z=25. %H is 7.
See FITDEMO.C for an example.
|
 |
|
marko
Germany
112 Posts |
Posted - 03/02/2001 : 03:25:58 AM
|
Hi,
It is even possible to call a function with WDLL_GET_STRING to get the same thing from within a non-moca DLL. Thanks for the hint greg! Marko |
 |
|
|
Topic  |
|
|
|