The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 WM_USER return parameters?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Qiang

UK
16 Posts

Posted - 07/18/2003 :  07:02:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

eparent

118 Posts

Posted - 07/18/2003 :  09:44:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.


Go to Top of Page

cpyang

USA
1406 Posts

Posted - 07/18/2003 :  10:40:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000