Guys,
In MUI I have a Welcome page followed by a license page. I need to change the background of an additional text I added to the Welcome page. To that extent I
FindWindow $WELCOMEDIALOGHANDLER "#32770" "" $HWNDPARENT
GetDlgItem $CONTROLHANDLER $WELCOMEDIALOGHANDLER 1205
SetCtlColors $CONTROLHANDLER "" "${MUI_BGCOLOR}"
in onShowWelcome.
Works fine. However if a go to the next page (License) and come back to the Welcome screen, the DlgItem has again a gray background. The problem is that FindWindow finds a dialog corresponding to the license screen instead of the one on the Welcome page.
I checked with MS Spy++ and there are two Dialogs. The one I'm looking for and the one corresponding to the License page.
I can't seem to be able to find the one from the Welcome page. Calling FindWindow several times always returs the same handle...
Any help appreciated...
FindWindow to find several windows
4 posts
Try
GetDlgItem $CONTROLHANDLER $MUI_HWND 1205
SetCtlColors $CONTROLHANDLER "" "${MUI_BGCOLOR}"
-Stu
GetDlgItem $CONTROLHANDLER $MUI_HWND 1205
SetCtlColors $CONTROLHANDLER "" "${MUI_BGCOLOR}"
-Stu
Thanks! Works fine!
For the record, is it possible to iterate through elements with FindWindow?
For the record, is it possible to iterate through elements with FindWindow?
No. You'd need to use C/C++'s EnumWindows or EnumChildWindows with callback functions. This is probably possible with the System plugin but I'm not that good at using it. I find it easier to write a small plugin to do the job.
-Stu
-Stu