Recommended Posts

hwndbutton=CreateWindowEx(NULL,"button","asdas",WS_CHILD|WS_VISIBLE|BS_RADIOBUTTON,100,100,200,24,hwnd,(HMENU)(1112),hInstance,NULL);
I am using this code but it isn´t chowing my button until i "guess" the local of it and click in it ...
I can´t figure out what is wrong...
Thanx in advance

Share this post

Link to post

Share on other sites

You definately shouldn''t be putting UpdateWindow in the message loop as that is sending loads of WM_PAINT messages and possible WM_NCPAINT messages too. It seems that something is drawing over the button. Make sure that in your code there is nothing that would draw a rectangle over the area that the button is contained in. Check the WM_PAINT message if you have one, or WM_SIZE message to see if something is drawing where it shouldn''t be.