C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
Go Back  Xtreme Visual Basic Talk > > > C\C++ : Win32 - how avoid flickers?


Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2015, 02:33 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default C\C++ : Win32 - how avoid flickers?


i have reading several about flickers, but i continue with problems
the best is:
- double buffering on WM_PAINT(better create a global variable, instead create it everytime we call the WM_PAINT, for save time and cpu;
- the parent must have the WS_CLIPCHILDREN and the child window must have WS_CLIPSIBLINGS;
- the WNDCLASS style member can't have CS_VREDRAW or\and CS_HREDRAW;
- the WM_ERASEBKGND must return TRUE;
- i can't, by some reason, put the WS_EX_COMPOSITED working
these is what i know about avoiding flickers, but even that i can't fix it
can anyone advice me more, please?
Reply With Quote
  #2  
Old 08-20-2015, 08:09 PM
BThunderW's Avatar
BThunderW BThunderW is offline
Administrator
 
Join Date: Nov 2011
Posts: 11
Default

Can you post sample code? How are you drawing the canvas?
Reply With Quote
  #3  
Old 08-23-2015, 12:02 PM
Cambalinho_83's Avatar
Cambalinho_83 Cambalinho_83 is offline
Senior Contributor
 
Join Date: Feb 2008
Location: somewhere in space
Posts: 1,296
Default

i was doing an error without understand it:
1 - draw the background on hdc control;
2 - draw the image, on scroll position on hdc control.
doing these, cause flickers.
so i did another Double Buffer and now no flickers.
thanks for all
Reply With Quote
Reply

Tags
flickers, create, true;, return, reason, wm_erasebkgnd, cs_hredraw;, style, win32, cs_vredraw, orand, ws_ex_composited, advice, fix, wndclass, avoiding, window, reading, wm_paintbetter, global, variable, buffering, double, avoid, everytime


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers? C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
 
C\C++ : Win32 - how avoid flickers?
C\C++ : Win32 - how avoid flickers?
 
-->