TheAutomator Posted April 22, 2016 Posted April 22, 2016 Hi, i'm not a very educated guy when it comes to dll calls.. can someone help me do this: DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", false) for only one control? Retro Console, NestedArrayDisplay UDF foldermaker-pro-clone MiniMark Editor
Trong Posted April 23, 2016 Posted April 23, 2016 (edited) DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", false) This function works for all control on Application, not for one control. Try this: DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle($hCtrl), "wstr", 0, "wstr", 0) Edited April 23, 2016 by VIP Enjoy my work? Buy me a 🍻 or tip via ❤️ PayPal
TheAutomator Posted April 23, 2016 Author Posted April 23, 2016 (edited) Hi VIP Thanks for the help, Yesterday i noticed when i did the dllcall in the middle of the GUI creation some controls had the default style and some of them didn't Your dllcall does it the right way Regards, TheAutomator Edited April 24, 2016 by TheAutomator mistake Retro Console, NestedArrayDisplay UDF foldermaker-pro-clone MiniMark Editor
TheAutomator Posted April 24, 2016 Author Posted April 24, 2016 (edited) changed my reply because first i tough it didn't work (sorry for this) can't change the title to [solved] btw.. Edited April 24, 2016 by TheAutomator Retro Console, NestedArrayDisplay UDF foldermaker-pro-clone MiniMark Editor
Trong Posted April 24, 2016 Posted April 24, 2016 GUICtrlGetHandle($hCtrl) You've replaced your variable? Enjoy my work? Buy me a 🍻 or tip via ❤️ PayPal
TheAutomator Posted April 26, 2016 Author Posted April 26, 2016 No, i was talking about the first dllcall: DllCall("uxtheme.dll", "none", "SetThemeAppProperties", "int", false) if you have a form with 5 buttons and you call it at the, let's say.. 3d button, the the 2 last buttons are in the old style i was just experimenting with it, that's all i meant with that and your dllcall works fine, made a function for it: _GuiCtrlDisableVS($hCtrl) again, tnx Retro Console, NestedArrayDisplay UDF foldermaker-pro-clone MiniMark Editor
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now