473,473 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Graphics problem...

Hey there,

I am quite new to C++ and am having a couple of problems with the graphics.
So far the way I have been repainting the whole window is by forcing a
WM_PAINT of the whole thing. To do little updates of the screen I have used
GetDC and ReleaseDC however I am still having problems.
When I have loaded the program up if I minimise it and restore it 3 or 4
times the repainting of the window messes up. It only happens noticibly on
large windows so I have come to the conclusion that its some kind of memory
leak but I have done what the book I referred to said.

Can anyone help me out?

Thx

Lee
Jul 19 '05 #1
2 1781
"Lee Garrington" <ze******@zen.co.uk> wrote in message
news:3f***********************@lovejoy.zen.co.uk.. .
Hey there,

I am quite new to C++ and am having a couple of problems with the graphics. So far the way I have been repainting the whole window is by forcing a
WM_PAINT of the whole thing.
What you are talking about is not C++, but some obscure graphical operating
system.
To do little updates of the screen I have used
GetDC and ReleaseDC however I am still having problems.
When I have loaded the program up if I minimise it and restore it 3 or 4
times the repainting of the window messes up. It only happens noticibly on large windows so I have come to the conclusion that its some kind of memory leak but I have done what the book I referred to said.

Can anyone help me out?


Yes, read this welcome message and at the bottom you might find the name of
a more suitable newsgroup.
www.slack.net/~shiva/welcome.txt

DW

Jul 19 '05 #2


Lee Garrington wrote:

Hey there,

I am quite new to C++ and am having a couple of problems with the graphics.
So far the way I have been repainting the whole window is by forcing a
WM_PAINT of the whole thing. To do little updates of the screen I have used
GetDC and ReleaseDC however I am still having problems.
When I have loaded the program up if I minimise it and restore it 3 or 4
times the repainting of the window messes up. It only happens noticibly on
large windows so I have come to the conclusion that its some kind of memory
leak but I have done what the book I referred to said.

Can anyone help me out?


You need to ask in a newsgroup dedicated to MS-Windows.
The FAQ contains some suggestions.

http://snurse-l.org/acllc-c++/faq.html

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: BlackHawke | last post by:
My name is Nick Soutter, I own a small game development company (www.aepoxgames.net) making our first game (www.andromedaonline.net) in java. I am writing because we are having a very...
14
by: Pmb | last post by:
At the moment I'm using Borland's C++ (http://www.borland.com/products/downloads/download_cbuilder.html#) I want to be able to take an array of points and plot them on the screen. Is there a way...
4
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design)....
8
by: Mark Johnson | last post by:
Using: VS 2003 NET C# for Framework and Framework Compact Trying : Moving a Card (Bitmap) as in Solitare (PC + WinCe) Version on OnMouseMove Problem : The affected drawing Area by Invalidate (or...
2
by: Christian Soltenborn | last post by:
Hi guys, I have a question to VB .NET: I add a Graphics object to a panel and use a bunch of DrawLine methods etc (it's really nice and convenient). But: As soon as I send my form (which...
15
by: Hamed | last post by:
Have I posted the message to wrong newsgroup? Or Does the question is so much strage? Would someone please kindly direct me to a true newsgroup or resource? Best Regards Hamed
8
by: pigeonrandle | last post by:
Hi, Please pity me, i am on a dial-up connection for the first time in 5 years :( ! Does anyone know how the resulting Graphics objects differ ...? What i really mean is can someone explain it...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
9
by: she_prog | last post by:
Dear All, I need to save the content of a panel to a bitmap. The panel can have many child controls which also need to be saved. The problem would be solved if I could have the panel saved to a...
9
by: koschwitz | last post by:
Hi, I hope you guys can help me make this simple application work. I'm trying to create a form displaying 3 circles, which independently change colors 3 times after a random time period has...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.