Link to home
Start Free TrialLog in
Avatar of mgdPaul
mgdPaulFlag for Netherlands

asked on

Creating a CStatic object

Hi,
I want to put a CStatic object on my dialog, but then from code. So I looked at the help on how to do it, tried that, and found that I didn't see anything on my dialog when I compiled and ran my program. I did something like:
CStatic stcTest;
RECT    rctTest;
rctTest.left  = rctTest.top = 10;
rctTest.right = rctTest.bottom = 100;
stcTest.Create("Test", WS_CHILD | WS_VISIBLE, rctTest, CWnd::FromHandle(m_hWnd));

(ok don't laugh if that's as wrong as can be, I'm a virgin, lol lol) :)
Ok zillions of people most likely know how to get this to work, could one of you please tell me? :) Thanks
ASKER CERTIFIED SOLUTION
Avatar of Wyn
Wyn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mgdPaul

ASKER

Well a few days ago I went to codeguru.com and my proxy kept telling me that the server didn't have a DNS entry, so I tried on the proxy itself, wouldn't open the site either... so I assumed the site was down for good. I just checked and it seems to work again, thanks! :) I got a lot of cool code from there, so I'm glad to see it's back up :) (if it was even the site that was down, not something wrong with my ISP.. lol I have the suckiest cable modem provider in the country, but it's the only one in my city)
Avatar of Wyn
Wyn

O ?
rick blommers there no this problem:)
Avatar of mgdPaul

ASKER

Well a few days ago I went to codeguru.com and my proxy kept telling me that the server didn't have a DNS entry, so I tried on the proxy itself, wouldn't open the site either... so I assumed the site was down for good. I just checked and it seems to work again, thanks! :) I got a lot of cool code from there, so I'm glad to see it's back up :) (if it was even the site that was down, not something wrong with my ISP.. lol I have the suckiest cable modem provider in the country, but it's the only one in my city)