• Advertisement

Archived

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

Changing The Colors Of Runtime Created Controls...

This topic is 5099 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
Handle WM_CTRLCOLORSTATIC


Thanks Salsa!Colin Jeanne | Invader''s Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud

Share this post


Link to post
Share on other sites

  • Advertisement