473,497 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

flickering problem

Hi
I am fresher in VC++. I am working on a VC++ Project.
I have a serious flickering problem when i am resizing
the window.
Please help me.

vani
Nov 16 '05 #1
4 1917
Hi,

One approach is to intercept WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages
to detect the start and end of the resizing operation and set a flag during
the move to stop painting until the drag finishes.

Cheers
Doug Forster

"vani" <va*****@yahoo.com> wrote in message
news:0a****************************@phx.gbl...
Hi
I am fresher in VC++. I am working on a VC++ Project.
I have a serious flickering problem when i am resizing
the window.
Please help me.

vani

Nov 16 '05 #2

Thanks for the reply.
I am working on the approach u told me.Once i get some
output i will let u know.
-----Original Message-----
Hi,

One approach is to intercept WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messagesto detect the start and end of the resizing operation and set a flag duringthe move to stop painting until the drag finishes.

Cheers
Doug Forster

"vani" <va*****@yahoo.com> wrote in message
news:0a****************************@phx.gbl...
Hi
I am fresher in VC++. I am working on a VC++ Project.
I have a serious flickering problem when i am resizing
the window.
Please help me.

vani

.

Nov 16 '05 #3
Al
Best way is to remove CS_VREDRAW and CS_HREDRAW in the class style. Also,
calculating the new area to be drawn and only drawing there (if you don't
need to redraw the old area) will help a ton.

--
remove underscores to email

"Doug Forster" <doug_ZAPTHIS_AT_TONIQ_ZAPTHIS_co.nz> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

One approach is to intercept WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages
to detect the start and end of the resizing operation and set a flag during the move to stop painting until the drag finishes.

Nov 16 '05 #4
Yes, I argee with that, remove CS_VREDRAW and CS_HREDRAW. The list of
rectangles to re-draw can be gotten from ::GetUpdateRgn and then
::GetRegionData. Clip your datastructure according to this list.

Ferdinand.

"Al" <a_wad_dell@co_dest_rike.com> wrote in message
news:ul**************@TK2MSFTNGP12.phx.gbl...
Best way is to remove CS_VREDRAW and CS_HREDRAW in the class style. Also,
calculating the new area to be drawn and only drawing there (if you don't
need to redraw the old area) will help a ton.

--
remove underscores to email

"Doug Forster" <doug_ZAPTHIS_AT_TONIQ_ZAPTHIS_co.nz> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

One approach is to intercept WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages to detect the start and end of the resizing operation and set a flag

during
the move to stop painting until the drag finishes.




Nov 16 '05 #5

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

Similar topics

2
8593
by: John Lee | last post by:
Hi, I have a windows application that uses the listview to display about 50 items in detailed view - 4 columns. The first column is static and other columns will be updated in 100-1000ms - it...
2
2500
by: John Lee | last post by:
Thanks Jay for your response. I tried your code and it still flickering a lot. To demonstrate it, you can grab a listview, create 3 columns - name, value, timestamp, in form_load event to add 50...
8
16892
by: benben | last post by:
I created a form and overrided OnPaint, OnClick and OnResize methods. My OnPaint calls base.OnPaint then repaints the whole screen. The screen flickers a lot! It didn't happen when the app was...
5
4364
by: Jim Hubbard | last post by:
Has anyone seen a fix for the flickering effect you get when resizing a Webbrowser control? It's really irritating and doesn't make for a professional-looking application.
5
2337
by: n00b | last post by:
I have some forms with maybe around 30 controls on each and anytime I load these forms different parts of it start flickering though not all of them at once and not the same ones everytime. the...
2
2088
by: sasifiqbal | last post by:
Hi, One of my developers are facing an interesting problem regarding UserControl invalidation. The problem is: We have two forms in our application. Form A does nothing except loading of...
6
3614
by: Mark Thompson | last post by:
I have a problem with my Visual Basic .NET 2003 application which I have so far been unable to resolve. I am trying to get an OpenGL control that I have created working properly as a control on...
1
2391
by: James | last post by:
Hi all, I have made a derived Listview which can accept the controls as items in it. Controls that we are using are Buttons in each row and implemented Grouping with the help of controls(label on...
1
3450
by: sj | last post by:
Flickering Subform! I am developing a Quotation system in Access 03. At entry, users enter data thru' a form with subform. However, the subform keep flicker when I run the system on computer...
2
4256
by: kulabhishek | last post by:
Hello all. I have developed one user control "Grid" in C# and I am using it in another user control inside one panel. The AutoScroll property for the panel is enabled. When the height or...
0
7121
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
6993
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
7197
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4584
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
3088
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
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1411
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 ...
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.