FindWindow to find several windows
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...