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 / Statusbars, Toolbars ....... again, sorry.

Author
Message
cjb2006
18
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 22nd Dec 2009 18:43
I'll apologize upfront. I just started with the GDK and I guess like most noobs have tried to follow the Forgers WINAPI online tuts. I say that because I see a lot of his code repeated in examples here. This subject has been previously "closed" by sending most threads off to a discussion about making an MDIChild and passing the DB window handle to it.

I guess the question I want to ask is: What is the Style that is used to make the DB 2D and 3D windows? Making the TB and SB using CreateWindowEx as a child window doesn't seem to work because the 2D and 3D windows don't share the the client area. Is there a way to change that using a SetWindowLongPtr (or similar)?
cjb2006
18
Years of Service
User Offline
Joined: 20th May 2006
Location:
Posted: 23rd Dec 2009 02:06 Edited at: 24th Dec 2009 14:23
I posted from work so I couldn't try it then but I've answered my own question now. GetWindowLongPtr() resulted in 0x14CF0000. I added 0x0200000 (WS_CLIPCHILDREN) to it.

This is the code:



Just replace main.cpp from IanM's demo:
http://forum.thegamecreators.com/?m=forum_view&t=144462&b=22

And add comctl32.lib to the Additional Dependencies on the Linker's Input page.

Login to post a reply

Server time is: 2024-10-01 20:27:41
Your offset time is: 2024-10-01 20:27:41