473,408 Members | 2,888 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,408 software developers and data experts.

WM_SetRedraw

Hi , i'm trying to diable window painting.I'm using the WM_SetRedraw message to do so. it does work the window stops painting itself but the problem is that stuff that are behind the window are being painted over it when i move the mouse over them. how can i fix this problem ?

thanks in advance.

sorry for my poor english
Apr 30 '08 #1
2 2893
Plater
7,872 Expert 4TB
Fix what?
It is behaving as you requested. It is not re-painting itself.
Which means anything painted over the top of it will not get erased (Since it does not repaint itself).

HAve you considered overriding the Paint method?
Apr 30 '08 #2
Fix what?
It is behaving as you requested. It is not re-painting itself.
Which means anything painted over the top of it will not get erased (Since it does not repaint itself).

HAve you considered overriding the Paint method?

i did try to override the paint method,the problem is that scrollbars seem to repaint themselfs even when i disable the painting.

basically what i want to do is to create some new controls and modify exisiting ones while the drawing is disabled and then draw them all in one shot.but i dont stuff over the top of the form to paint on it, and definatly not stuff that are behind the form. how can i do so ?
May 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: R.Wieser | last post by:
Hello All, I'm trying to get a "Virtual Listbox" to work. I've currently got a form, and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and LBS_NODATA flags on it. I've...
9
by: Jim | last post by:
The below problem occurs randomly too, but I've managed to isolate a sequence of events when it always happens: I have two forms (say Form1 and Form2). Form 1 contains a TreeView control. A...
2
by: Reinier | last post by:
Hello Some years ago I wrote an application (a sequencer) in VB5 and then in VB6 which records and plays MIDI signals from and to an electronic organ. The MIDI information is displayed in a RichText...
1
by: Goran Djuranovic | last post by:
Hi all, I would really appreciate if someone cound point me to the right direction, regarding the issue I have. Or suggest another solution. I have a VB.NET windows service that is processing...
13
by: WALDO | last post by:
I have a .Net TextBox (TextBoxBase, really) in which I am appending about 20 lines of text per second. I use the AppendText() method to accomplish this. This is a great substitute for taking the...
0
by: PAF | last post by:
Hi, I'm writing a WinForms application in .NET and I have a problem. I use the WM_SETREDRAW message to avoid flicking in some component during processes (populating, etc...). But when the...
2
by: =?Utf-8?B?ZG1idXNv?= | last post by:
I am filling a richtextbox via the AppendText method and it works great. However, I would like to to off screen updating, add my 50 or so lines to the richtextbox, and then turn screen updating...
6
by: abdunnabisk | last post by:
I am developing a program in c# where I have to show device connected each other in a dashboard.I am drawing in OnPaint event.when the user move the devices the background is flickering.because each...
4
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, We have a windows forms application with different controls used inside, each control has several input items such as textboxes , custom labels, user controls, and some treeviews.. etc....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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:
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.