Solved

Creating a CStatic object

Posted on 2000-03-16
4
210 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

690 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