Jump to content
  • Advertisement

Archived

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 5190 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?
case WM_CREATE:
{

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");

break;
}
[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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!