Calin Iaru wrote:
>     my MSI setup needs some custm actions that should modify a Static 
> text control after pressing a Configure button. I have found a 
> workaround for this problem by creating many such text controls on the 
> same client area and position  and having one visible. When the 
> Configure button is pressed, the text control is hidden and another one 
> is shown. I would like to know if there are other ways to update a 
> static text control from within the custom action. Ideally, I should get 
> the visible window using GetForegroundWindow() and EnumChildWindows, 
> then use that handle in a call to SetWindowText or SendMessage(..,  
> WM_SETTEXT, ..); these approaches does not work.
>   

You can try using properties in the static text. (e.g., "This is my 
mode: [MYMODE]") But there's no guarantee that MSI refreshes the 
property values while the dialog is running. Though MSI does use stock 
Windows controls for the most part, there's no guarantee that normal 
control messages will work, especially from a custom action.

Otherwise, your current approach is probably the best one.

-- 
sig://boB
http://bobs.org



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to