473,382 Members | 1,437 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,382 software developers and data experts.

Screen refresh question

J L
I am using

SendMessage(me.Handle, WM_SETREDRAW, False, 0)

to prevent my form form displaying during my update of a listview.
During the update I possibly change the size of both the listview and
the form containing it.

My problem is that if the new form is larger than the old one, all is
fine. But if it is smaller than the old one, the image of the old one
remains outside the bounds of the new form.

Does that make sense and how can I eliminate this behavior. I use
me.Refresh after I turn the redraw back on.

TIA,
John
Nov 21 '05 #1
2 2145
You shouldn't be using the sendmessage at all. The listview has two
methods: BeginUpdate and EndUpdate, which do this for you.

"J L" <jo**@marymonte.com> wrote in message
news:0l********************************@4ax.com...
I am using

SendMessage(me.Handle, WM_SETREDRAW, False, 0)

to prevent my form form displaying during my update of a listview.
During the update I possibly change the size of both the listview and
the form containing it.

My problem is that if the new form is larger than the old one, all is
fine. But if it is smaller than the old one, the image of the old one
remains outside the bounds of the new form.

Does that make sense and how can I eliminate this behavior. I use
me.Refresh after I turn the redraw back on.

TIA,
John

Nov 21 '05 #2
J L
Hi Robin,
Thanks for the reply but Begin and EndUpdate wont do the trick for me.
I am not only updating the listview but also resizing the form and
moving buttons around. So I do need to prevent the form from redrawing
duing all of this. The problem is if the form gets smaller, then the
old excess is still visible.

John

On Fri, 20 May 2005 17:46:04 +0100, "Robin Tucker"
<id*************************@reallyidont.com> wrote:
You shouldn't be using the sendmessage at all. The listview has two
methods: BeginUpdate and EndUpdate, which do this for you.

"J L" <jo**@marymonte.com> wrote in message
news:0l********************************@4ax.com.. .
I am using

SendMessage(me.Handle, WM_SETREDRAW, False, 0)

to prevent my form form displaying during my update of a listview.
During the update I possibly change the size of both the listview and
the form containing it.

My problem is that if the new form is larger than the old one, all is
fine. But if it is smaller than the old one, the image of the old one
remains outside the bounds of the new form.

Does that make sense and how can I eliminate this behavior. I use
me.Refresh after I turn the redraw back on.

TIA,
John


Nov 21 '05 #3

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

Similar topics

0
by: AK | last post by:
Hi, I have a medium sized app that I'm transferring to use curses. What happens is very very strange.. I am at my wits' ends. I worked with it all day yesterday and couldn't figure it out....
10
by: Conax | last post by:
Hi there, My boss is hoping that I can come up with a page that displays some information. The information will always be displayed on specific part of the page, with auto refresh. But he...
6
by: Logger | last post by:
Help, Want someone's option. I'm calling a popup screen, say form B, to add/edit a record. In, say form A, I call form B using javascript window.open in server side code. I need to know when I...
3
by: John Baker | last post by:
Hi: As in the "Wizard of Oz", I want people to "pay no attention to the man behind the curtain", by freezing the screen while a whole lot of things happen. I know about ECHO OFF, but this...
3
by: serge anton | last post by:
Hi, I want to refresh all the screen (including the desktop) or a part of the screen. I can have a reference to the screen with win32 API : public static extern int GetWindowDC(IntPtr...
3
by: Tulga Kalayci | last post by:
Hi All, I need advise on how to proceed in a area which I have no experience. The problem is related to a call center solution. When a call comes, call center software + server handles call and...
3
by: redneon | last post by:
Is an event fired whenever there's a screen refresh? I'm wanting to run a certain method whenever there's a screen refresh and was wondering if I could override wndproc and listen for an event to...
4
by: | last post by:
I'm not sure what to think of this. In the appliacation, upon postback, users screens will get mixed up. Meaning... Perhaps on my screen im working with a particular set of data. I click a button...
0
by: Casey Bralla | last post by:
For some reason, I can't get curses to refresh the screen. Can someone offer a suggestion to try to debug this? Here is my python code snippet: stdscr=curses.initscr() curses.noecho()...
0
by: Casey Bralla | last post by:
My problem was caused by a getch() function which paused, waiting for the character. Live and learn. <sigh> For some reason, I can't get curses to refresh the screen. Can someone offer a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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?
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.