Solved

Creating a CStatic object

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

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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 52
Expand macro to ask for filename column 8 37
maven archtype selection in eclipse 1 58
ShiftLeft challenge 21 89
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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