how to draw somthing (e.g. a line or pixel) on a dialog box?

S

sadegh

I am using VC++6. I want to draw some simple shapes (e.g. line,
circle, pixel) on a dialog box. How can I do this? Thanks a lot
 
I

Ian Collins

sadegh said:
I am using VC++6. I want to draw some simple shapes (e.g. line,
circle, pixel) on a dialog box. How can I do this? Thanks a lot
You'd be better of asking in a VC group.
 
O

Obnoxious User

sadegh skrev:
I am using VC++6. I want to draw some simple shapes (e.g. line,
circle, pixel) on a dialog box. How can I do this? Thanks a lot

Access the Windows SDK Documentation and read about the GDI.
 
A

aleksa

I am using VC++6. I want to draw some simple shapes (e.g. line,
circle, pixel) on a dialog box. How can I do this? Thanks a lot

Get the DC of the dialog then draw.
 
S

sadegh

Get the DC of the dialog then draw.

Could you please tell me what should I do to get the DC of the Dialog?
for example I have a button on the dialog and I want to show a line on
the Dialog by clicking on the button.
 
J

Jim Langston

sadegh said:
Could you please tell me what should I do to get the DC of the Dialog?
for example I have a button on the dialog and I want to show a line on
the Dialog by clicking on the button.

Please, this question is off topic for this newsgroup. This newsgroup deals
with the standard C++, not extentions (linux, windows, etc...). Please ask
in a windows newsgroup
 
D

Default User

sadegh said:
Could you please tell me what should I do to get the DC of the Dialog?
for example I have a button on the dialog and I want to show a line on
the Dialog by clicking on the button.

You are off-topic in this newsgroup. Go find the correct one.




Brian
 
J

James Kanze

You'd be better of asking in a VC group.

One comment that might be vaguely on topic here: he'd also be
better off getting a more recent version of VC++. VC++ 6 is
close to ten years old, and the language has changed
considerably since then.
 
I

Ian Collins

James said:
One comment that might be vaguely on topic here: he'd also be
better off getting a more recent version of VC++. VC++ 6 is
close to ten years old, and the language has changed
considerably since then.
It's strange isn't it? Most platform vendors now have a free version of
their latest tools, but people still use the old ones.
 
M

Markus Schoder

It's strange isn't it? Most platform vendors now have a free version of
their latest tools, but people still use the old ones.

Not so strange really.

Since Microsoft's free compiler version comes with optimisation disabled
it is unusable for anything except toy projects.

Also VC++ 7.0 which was VC++ 6 with a different GUI was current until
2003.
 
D

Default User

Ian said:
It's strange isn't it? Most platform vendors now have a free version
of their latest tools, but people still use the old ones.

It's still our Windows development platform at work, because everything
we use has to be certified by our internal tools group. It has
problems, but those are known and documented.





Brian
 
R

red floyd

Default said:
It's still our Windows development platform at work, because everything
we use has to be certified by our internal tools group. It has
problems, but those are known and documented.

Also, some third party toolsets only work with VC6 (stupid MODSIM tookits).
 
I

Ian Collins

Markus said:
Not so strange really.

Since Microsoft's free compiler version comes with optimisation disabled
it is unusable for anything except toy projects.
Ah, I didn't know that, typical of them I suppose.
 
J

James Kanze

It's strange isn't it? Most platform vendors now have a free version of
their latest tools, but people still use the old ones.

I've often wondered about that myself. I don't think you should
rush to always use the latest version, and you generally
shouldn't switch versions in the middle of a project. But 10
years is a long time in this industry; in that length of time,
either the vendor has come out with something that really is
better, and justifies the switch, or he's got no future in the
industry.
 
P

peter koch

On Mon, 07 May 2007 09:32:02 +1200, Ian Collins wrote: [snip]
It's strange isn't it? Most platform vendors now have a free version of
their latest tools, but people still use the old ones.

Not so strange really.

Since Microsoft's free compiler version comes with optimisation disabled
it is unusable for anything except toy projects.

No - that is incorrect. You have the same optimiser in the free
edition as in the "professional" one. What you don't get is stuff like
profile guided optimisation (PGO).

/Peter
 
M

Markus Schoder

On Mon, 07 May 2007 09:32:02 +1200, Ian Collins wrote: [snip]
It's strange isn't it? Most platform vendors now have a free version
of their latest tools, but people still use the old ones.

Not so strange really.

Since Microsoft's free compiler version comes with optimisation
disabled it is unusable for anything except toy projects.

No - that is incorrect. You have the same optimiser in the free edition
as in the "professional" one. What you don't get is stuff like profile
guided optimisation (PGO).

That was an older version I was thinking about which had no optimization
-- .NET Standard or something like that. It was also not free but much
cheaper than the optimizing version.

Instead Microsoft seems to now not include MFC and ATL with the current
free version.
 
D

Default User

Markus Schoder wrote:

That was an older version I was thinking about which had no
optimization -- .NET Standard or something like that. It was also not
free but much cheaper than the optimizing version.

Instead Microsoft seems to now not include MFC and ATL with the
current free version.


Ah. So they improved it.




Brian
 
M

Massimo

"Markus Schoder" <[email protected]> ha scritto nel messaggio

Instead Microsoft seems to now not include MFC and ATL with the
current free version.

In order to develop native Win32 applications with Visual C++ Express, you
have to download and install (separately) the Platform SDK, which instead is
already included with the full Visual Studio.


Massimo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,242
Latest member
BarbMott55

Latest Threads

Top