473,804 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Enable DoubleBuffering for MdiClient

Is there any way to enable double buffering in an MdiClient control? I have
a case where I need to hide all of the MdiClient forms and interactively draw
a custom background in an MdiClient control but without double buffering the
flicker is unbearable.

Thanks for any help!
Lance

Jul 5 '07 #1
4 1691
Hi Lance,

In my opinion, there may not be a way to enable double buffering for an
MdiClient control. The MdiClient class doesn't provide a method 'SetStyle'.

You have mentioned that the MdiClient control flickers when you
interactively draw a custom background in it. Do you paint the custom
background in the Paint event handler of the MdiClient? If so, I suggest
that you only paint the region that needs to paint, i.e. use the
ClipRectangle property of the PaintEventArgs parameter.

If the problem is still not solved, you may send me a simple project that
could just reproduce the problem. To get my actual email address, remove
'online' from my displayed email address.

Sincerely,
Linda Liu
Microsoft Online Community Support

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 6 '07 #2
Hi Linda,

Thank you for your feedback. In general I try to implement clipping as you
suggested, but in this case it is not possible because all drawn regions need
to update whenever the user changes one of the regions. In regards to
enabling double buffering do you know if there is an API method that could do
this for us?

Thanks again!
Lance

Jul 9 '07 #3
Hi Lance,

Thank you for your reply.

I think it would be better to address this issue if you could send me a
simple project that could just reproduce the problem.

To get my actual email address, remove 'online' from my displayed email
address.

Thank you for your understanding and cooperation!

Sincerely,
Linda Liu
Microsoft Online Community Support

Jul 11 '07 #4
Hi Linda,

Sorry, I should have explained that I use a considerable amount of internal
code for this part of my application. It would be fairly time consuming to
create a sample that excludes the code and still demonstrates the issue in a
way that gives you a sense for what I am doing.

Anyway, I looked into it some more and I came up with a way to get
everything to work. Thanks again for your help – it is always very much
appreciated!

Lance

Jul 11 '07 #5

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

Similar topics

1
2352
by: BillCo | last post by:
Windows API not my strong point... can anyone give me the idiots guide to getting the MDIClient window height (bottom of menu bar to top of status bar) ? Basically I need a form to open up to the full availible height flush with the left hand side without a scroll bar appearing. Actually, it would also be pretty cool if i could trap a MDIClient window height resize event so that the form would always be the correct height... but I'll...
1
2786
by: John F | last post by:
Is there a way to place controls on the surface of MdiClient and have it always stay in the background when new child forms are loaded into the MDI? When I place controls on the surface of an MDI app and load child forms, the controls place on the surface poke through the child form. In the MDI paradigm, is it not wise/proper to use the MdiClient as a controls surface? -- Thanks, John F
5
1864
by: MuZZy | last post by:
Hi, I'm developing an MDI application and i am having a problem: how do i know the state of MdiClient; what i mean is: when i maximize a MDI child, then close it and then open a new MDI child, it will open maximized, then if i change it's state to Normal and close, then next opened MDI child screen will have state Normal. So i assume that MdiClient keeps state of MDI child windows even if none of child forms exists at the moment. How...
1
1729
by: pigeonrandle | last post by:
Hello. I hope you are all well. I've been trying to get the text from an MDICLIENT window (recognised by SPY++ as 'WindowsForms10.MDICLIENT.app3'). When i try to get the text using SendMessage(WM_GETTEXT), or good old GetText(), i get an empty string returned. Eh? Spy++ doesn't seem to get the text either. Do i need to use some WM_MDI* type messages or did MS leave out the handling of that message for MDI forms? Im using Visual Studio...
2
2332
by: Brian Tkatch | last post by:
Not sure if this is the way it's supposed to be, but after a Layout event on an MDI form, the form's new width is set, but the MDIClient's width is not. As an example, start a new Windows Application, and for the code use: Public Class Form1 Dim TextBox1, TextBox2, TextBox3 As New TextBox Dim The_MDIClient As MdiClient
0
1947
by: gilbert | last post by:
Hello. I am using .Net 2.0, C#. and am trying to put a MdiClient control into a SplitPanel of a SplitContainer. First, I put a SplitContainer called splitContainer1 into the form. In the Form_Load handler, I use the following, MdiClient mdiClient = new MdiClient();
6
7858
by: =?Utf-8?B?bGpsZXZlbmQy?= | last post by:
Is there any way to change or turn off the border of an Windows.Forms.MdiClient control? In my opinion the 3D bevel that the control uses is outdated and looks poor in my app. The best would be a single line border that custom draw so I can control the color of the border. Thanks for any help! Lance
8
1673
by: Phil | last post by:
Is it possible to find the size of the MDIClient area, excluding the space already used by docked controls? I have thought I could perhaps create a new control, set it's Dock property to Fill and see how big that is, but there must be a better way. I would have to do this in the Resize event TIA Phil.
0
1172
by: my4color | last post by:
Hello every one, My development environment is c#. * Design -I have one MDI parent, it has one MDI child, -There is a toolbar on to the MDI parent. -Then there is Two list view into the MDI client that are horizontally align one dock on top and other is fill. - listview1 is on top on MDIClient.
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.