Archive: Install Progress Listbox


Install Progress Listbox
I'm using background image for my installer which covers all the window area of the installer. Now the problem is with listbox which shows install progress on installation.

If I click some where in that listbox and minimize the installer and then maximize the installer the listbox is getting hidden, the problem is occurring due to set CreateWindowEx for a bitmap static control and set the bitmap there.

here is the code for create and set bmp image over the installer.

 
;System::Call `kernel32::GetModuleHandle(i 0) i.R3`
;System::Call `user32::CreateWindowEx(i 0, t "STATIC", t "", i ${SS_BITMAP}|${WS_CHILD}|${WS_VISIBLE}, i 0, i 0, i R1, i R2, i $HWNDPARENT, i ${IDC_BITMAP}, i R3, i 0) i.R1`
;System::Call `user32::SetWindowPos(i R1, i ${HWND_TOP}, i 0, i 0, i 0, i 0, i ${SWP_NOSIZE}|${SWP_NOMOVE})`

; Load & Set the bg bitmap.
System::Call `user32::LoadImage(i 0, t "$PLUGINSDIR\bg.bmp", i ${IMAGE_BITMAP}, i 0, i 0, i ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) i.s`
Pop $hBitmap
SendMessage $R1 ${STM_SETIMAGE} ${IMAGE_BITMAP} $hBitmap

I found that this problem is now with XP only. On Win 7 its fine.

Anyone with any ideas ?


You probably need to increase the z-order of the list view control. You can do that using SetWindowPos.

Stu


That I thought earlier and tried to set TOPMOST by editing .exe of ui by reshack but didn't helped.