Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Windows style aero disabled.

Author
Message
OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 10th Apr 2012 12:47
Is there any possibility to switch the style of Windows in a simplified style using DBPro, not style Aero without transparency. I know that 3DSMax can do it during startup, and Windows automatically returns the style Aero after the close of 3DSMax. I would also achieve this by using DBPro, as I noticed the performance boost with the simplified style of Windows.

.....already beside.....
OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 11th Apr 2012 12:23
In the shortcut properties application in the "compatibility" is checked - disable desktop composition. whether you can check it with DBPro? In Windows 7, it increases the performance of your application if you use a standard color scheme.

.....already beside.....
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 11th Apr 2012 14:54
I think you need to learn to use the USER32.DLL

Aside from this I dunno...

ShaunRW
DBPro Developer
18
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 11th Apr 2012 15:44 Edited at: 11th Apr 2012 16:11
Would a GUI plugin like Brandy Boys BBB GUI Plugin do this?

EDIT: Actually i did some searching and found a way to enable and disable using batch files.

Create these files:

enableAero.bat


disableAero.bat


Then call these functions from your code


OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 11th Apr 2012 16:57 Edited at: 11th Apr 2012 18:33
Mr Valentine, I often encounter the need for knowledge USER32.DLL but I do not know where to look.
Edit:
that's what I found on USER32.DLL , but how to use it I do not know. And I'm not sure whether it is what I need.



ShaunRW In what order should call the function?
Inside or outside the loop?
Edit: ShaunRW is worked !



regard to BBB's what I've read:
Quote: "
Edited: 8th Apr 2012 07:54
FREQUENTLY ASKED QUESTIONS:
* My application has a silent crash on exit, what's the problem?
I'm still working on this problem. Possible solutions: stop using theme files or use Newton's plugin just for theming. You can find his plugin at the following link:http://forum.thegamecreators.com/?m=forum_view&t=163892&b=5

"


.....already beside.....
ShaunRW
DBPro Developer
18
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 11th Apr 2012 18:03
Well you don't want to call it inside a loop. For what you're using it for, you would call disableAero when you first start the program and enableAero when the program is terminated.

bitJericho
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 12th Apr 2012 17:34 Edited at: 12th Apr 2012 17:39
this is actually in Dwmapi.dll

The command in c++ is: DwmEnableComposition(DWM_EC_DISABLECOMPOSITION)

translated, it would be (untested)



you probably don't need to even worry about if it was successful or not, if you think about it

also, the docs say it'll re-enable itself once the program exits, or you can call the function with a value of 1 once you're done


Sources:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa969534(v=vs.85).aspx

http://msdn.microsoft.com/en-us/library/windows/desktop/aa969510(v=vs.85).aspx

OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 13th Apr 2012 11:08
Jerico2day Thank you, this is the best option for achieving.

.....already beside.....

Login to post a reply

Server time is: 2026-07-10 10:20:52
Your offset time is: 2026-07-10 10:20:52