473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1916
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
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.