Skip to content
⌘ NSIS Forum Archive

WinMessages.nsh and DropList's

2 posts

jrlarkin87#

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?
jiake#
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:
Searches the list of a combo box for an item that begins with the characters in a specified string. If a matching item is found, it is selected and copied to the edit control.


To get more message usage of all controls, visit:
The topics in this section discuss each control separately. The information for each control contains overviews that describe the control and how to use it, as well as programming elements that are used specifically with that control.

For example combobox, click "ComboBox" -> "ComboBox Control Reference" -> "Messages".
Then you can see all messages of combobox and get their usage through the links.