Solved

Creating a CStatic object

Posted on 2000-03-16
4
191 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:mgdPaul
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Wyn earned 50 total points
ID: 2623402
Goto:
http://www.codeguru.com/staticctrl/index.shtml

You will find alot sample code there.

Regards
0
 

Author Comment

by:mgdPaul
ID: 2623432
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)
0
 
LVL 5

Expert Comment

by:Wyn
ID: 2623479
O ?
rick blommers there no this problem:)
0
 

Author Comment

by:mgdPaul
ID: 2623488
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)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
string initialization in java 11 103
format the code in java 6 72
noX challenge 17 76
wordappend challenge 8 85
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now