| T O P I C R E V I E W |
| Qiang |
Posted - 07/18/2003 : 07:02:27 AM Hey,
Does anyne know anything about WM_USER in SendMessage?
SendMessage(hWnd, WM_USER, 0, (LONG)(LPSTR)lpString);
is the command needed to send messages into origin. But is it possible to get it to return a value? Such as the name of the file that passes through? this is to check whether that the file name is the same if the file name was passed on a second time.
thanks
Qiang
|
| 2 L A T E S T R E P L I E S (Newest First) |
| cpyang |
Posted - 07/18/2003 : 10:40:20 AM Hi Qiang,
Origin will accept WM_USER as labtalk string in LPARAM.
If you need to control Origin from another application, you will run into limitations as Origin was not designed to be used as such, so far. We are adding Automation support, which is going to be available soon in our next version.
CP
|
| eparent |
Posted - 07/18/2003 : 09:44:08 AM According to Windows API documentation: ---------- The WM_USER message is used by applications to help define private messages. Message numbers in the range (WM_USER through 0x7FFF) can be defined and used by an application to send messages within a private window class. These values cannot be used to define messages that are meaningful throughout an application, because some predefined window classes already define values in this range. For example, predefined control classes such as BUTTON, EDIT, and LISTBOX may use these values. Messages in this range should not be sent to other applications unless the applications have been designed to exchange messages and to attach the same meaning to the message numbers. ---------- Unless you know what you are doing I suggest you do not send WM_USER messages to Origin.
|
|
|