View Single Post
Old 9th March 2019, 16:25   #1
Endy-kun
Junior Member
 
Join Date: May 2015
Posts: 24
Prevent NSISVCLStyles from affecting child windows

Hey guys. Given the sample code below... when you press next, a fileselect dialog pops-up. Is it possible to prevent skinning of this dialog and child windows in general?

Plugin has a way to unskin controls (NSISVCLStyles::RemoveStyleControl), but I don't know if it is good enough for windows. If yes, can you please assist me with doing this? If not, are there any other options? Maybe I can unload the .dll at some right time or something... The reason for this is that more often than not the plugin breaks/changes child windows in undesirable ways.
PHP Code:
!include "MUI2.nsh"
Name "Modern UI Test"
OutFile "Basic.exe"
Function .onInit
    InitPluginsDir
    File 
/oname=$PLUGINSDIR\xxx.vsf "resources\xxx.vsf"
    
NSISVCLStyles::LoadVCLStyle $PLUGINSDIR\xxx.vsf
FunctionEnd


!insertmacro MUI_PAGE_INSTFILES
Page custom pgPageCreate pgPageLeave

Function pgPageCreate
    nsDialogs
::SelectFileDialog "bla-bla" "$0" "bla"
FunctionEnd
Function pgPageLeave
FunctionEnd

Section 
"Dummy Section" SecDummy
SectionEnd 
Endy-kun is offline   Reply With Quote