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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 WM_USER return parameters?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000