?
Solved

Creating a CStatic object

Posted on 2000-03-16
4
Medium Priority
?
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Wyn earned 150 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 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