Skip to content
⌘ NSIS Forum Archive

Custom page actions

3 posts

joshhh#

Custom page actions

I'v made custom page for my installer. Page contains 3 checkboxes and 3 images. Checkboxes selects files to install. Images should show preview of each skin.

My question is: can I show image of skin on mouse over of skin checkbox or maybe on any button press? (Sample attached)
joshhh#
OK!
I found solution for my custom page.
And there is one question I have can I load *.jpg images like bmp via WinAPI?


FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $ctrlhandle $0 1200
System::Call "user32::LoadImage(i 0, t '$PLUGINSDIR\1.bmp', i 0, i 0, i 0, i ${LR_LOADFROMFILE}) i.s"
Pop $bmphandle
SendMessage $ctrlhandle 0x0172 "" "$bmphandle"