Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

WhErE Is My MiNd

Changing The Colors Of Runtime Created Controls...

This topic is 5342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am tryin to create a static control at runtime with the code below. It comes up fine but I cannot find any way of changing the background color so it matches up with the bg color of the parent window. Can anyone point me in the right direction?

HWND something = CreateWindowEx(WS_EX_TRANSPARENT, "STATIC", "", WS_CHILD | WS_VISIBLE, 0, 0, 100, 100, hwnd, (HMENU)test, GetModuleHandle(NULL), NULL);

SetDlgItemText(hwnd, something, "This is a test");

[edited by - WhErE Is My MiNd on March 6, 2004 3:09:25 PM] [edited by - WhErE Is My MiNd on March 6, 2004 3:37:58 PM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!