Archive: Hide an Icon


Hide an Icon
Hi all,

i am using InstallOptions with UMUI to display a dialog.
That dialog has a drop down menu where you can cycle through some Operating System and make changes to a path or a password or a serial number.

Now i have added a little Icon next to the DropDown to indicate if in the current OS a chang was made, if so i want to hide that icon.

I get the Icons HWND

ReadINIStr $ICONHIDE "$PLUGINSDIR\Dialog_GetOSDetails2.ini" "Field 9" "HWND"

then i do a

ShowWindow $ICONHIDE ${SW_HIDE}

and nothing happens, when i now do a "ALT-Tab" and cycle the window to the back and the front again the icon i gone as i would like it to.

Can i mimic that behaviour in NSIS?


It works now, i have no idea why but it does, damnit this always happens 5 minutes after i have called for help.

What i have done, i have no idea, i was rather frustrated and got rid of some debug code (Messageboxes) and suddenly it worked.