Archive: Dynamic Combobox


Dynamic Combobox
first nsis project in about a year, feeling kinda rusty. i've searched the forum, but i doesn't seem like anybody's been in the situation i'm in right now.

i have a combobox that's filled with values from a standard ini-file. now what i'd like to do is use another control (e.g. a checkbox) to influence what's being displayed in the combobox.

for example, when the checkbox is checked it the combobox displays values from one ini-file, when it's not checked it displays valuesfrom a second ini-file.

i guess i could just fill the combobox with a simple onchange function, but how can i clear all entries in it?


Lookup combobox messages in winmessages.nsh or MSDN (Hint: CB_R...)


Originally posted by Anders
Lookup combobox messages in winmessages.nsh or MSDN (Hint: CB_R...)
see how rusty i am, could've thought of that myself ;)

well thanks, CB_RESETCONTENT seems to be what i was looking for!