PDA

Click to See Complete Forum and Search --> : SendMessage Constants ??


DPearce
Nov 1st, 1999, 09:17 PM
The SendMessage and PostMessage commands would appear to be very useful but how do I get a list of all of the messages that an app will accept and their parameters. How do I make a VB6 app that will respond to these?

Thanks.

Aaron Young
Nov 2nd, 1999, 02:39 AM
Check out this Website (http://sourcesite.simplenet.com/visualbasic/) it has a Win32 API Help File Download which describes alot of the Messages and their Parameters. you can get the Declarations from the API viewer which ships with VB.

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net

DPearce
Nov 2nd, 1999, 03:56 PM
Thanks, I'll give it a go.

Serge
Nov 2nd, 1999, 06:03 PM
Every set of constants based on the prefix. In other words, lets say you want to change the style or behavior of the listbox: Then all constants will start with LB.

Example: LB_FINDSTRING, LB_GETCOUNT etc.
For the style you would add S after LB, so it would be: LBS_SORT, LBS_USETABSTOPS etc.

Here are some control constants prefixes:


LB - ListBox
CB - ComboBox
EM - TextBox, RichTextBox
BM - Button, CheckBox, OptionButton
WM - Window Message
TVM - TreeView
LVM - ListView


If you have MSDN Library installed then you have all the help for these constants.

Regards,

------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com