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.

Dark GDK / Windows API / DirectX

Author
Message
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 7th Nov 2009 01:16
I'm trying to use windows menus in a project but I can't seem to figure out how to force the DirectX Device to resize so that It doesn't obscure the menus. Any suggestions?

( Besides using my own menus... )

cleonjones
14
Years of Service
User Offline
Joined: 24th Oct 2009
Location:
Posted: 7th Nov 2009 02:28
Did you try using dbSetDisplayMode()? That will try and force the monitors resolution if it's supported

?
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 7th Nov 2009 18:21 Edited at: 7th Nov 2009 18:22
You can simply set the style on the DBPro window to include WS_CLIPCHILDREN.

luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 7th Nov 2009 19:40 Edited at: 7th Nov 2009 19:50
Perfect, thanks Diggsey. I've never used the windows API before because I've never used C++ without darkGDK, but if anyone wants to see the code here it is:



Login to post a reply

Server time is: 2024-10-01 16:36:28
Your offset time is: 2024-10-01 16:36:28