Archive: how to Sendmessage to Checkbox?


how to Sendmessage to Checkbox?
  i need to change the state of a checkbox on "NOTIFY" but i cant find the right Sendmessage - pls help.

ps. do i need winmessages.nsh?


BM_SETCHECK
http://msdn.microsoft.com/library/de...m_setcheck.asp

-Stu


Works, thx

SendMessage $1 ${BM_SETCHECK} 0 "0" <-- off
SendMessage $1 ${BM_SETCHECK} 1 "0" <-- on


erm, additional - how to with "Flags=" ?

ok, i think it is solved with example "testnotify.nsi"


Another problem - i need to send a path-variable to IO

[Field 1]
Type=DirRequest
Left=92
Right=280
Top=75
Bottom=88
State= <-- send here
Flags=PATH_MUST_EXIST|DISABLED

which command is it?

BTW it is part of a leave-function

StrCmp $STATE"37" 0 check37

;copy back default values
ReadINIStr$1 "$PLUGINSDIR\menu01.ini" "Field 1" "HWND"
SendMessage $1 ${???} "$MOZDIR4" "0"
!insertmacro MUI_INSTALLOPTIONS_WRITE "menu01.ini" "Field 1" "State" "$MOZDIR4"
Abort
check37:
thx

Use ${WM_SETTEXT} on the text box.

-Stu


thank you much

SendMessage $1 ${WM_SETTEXT} 0 "STR:$MOZDIR4"

is there any help to get the right command?
it is not really clear to me, why WM and not EM or BM :(


WM = Windows Message (i.e. for general windows and controls)
BM = Button Message
and so on.

Use MSDN if you need information about the messages (just use Google).

-Stu