Archive: WinMessages.nsh and DropList's


WinMessages.nsh and DropList's
Hey All,

This Questions is in relation to my last topic. Sorry to barge the board with posts, but I felt this should be its own post.

You can change text using

SendMessages and ${WM_SETTEXT}

You can hid them with

ShowWindows and ${SW_SHOW}

So there must be a way to Populate a droplist and set its state using the same type of

GetDlgItem $R8 $Yadda_HWND 1295
SendMessage $R8 ${WM_SETTEXT} 1295 "STR:START!"

setup?


The WM_SETTEXT message is used to change the text of a button, label, etc.
To select a string of Combobox/Droplist, you may use:
SendMessage $R8 ${CB_SELECTSTRING} -1 "STR:STRING_TO_SELECT"

See msdn for details:
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

To get more message usage of all controls, visit:
http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx
For example combobox, click "ComboBox" -> "ComboBox Control Reference" -> "Messages".
Then you can see all messages of combobox and get their usage through the links.