Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CS_VRERAW and CS_HREDRAW

Posted on 1998-02-25
2
Medium Priority
?
363 Views
Last Modified: 2013-12-04
Always have problem on resize the common controls with full drag. Too many refreshes cause screen flashing during sizing. Seems like it has something to do with the Class style.
Any idea on how to make resizing smoother.
0
Comment
Question by:tser
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 200 total points
ID: 1411565
Yes this is caused by that fact many controls have CS_VREDRAW and CS_HREDRAW style. I also had the same problem with Extended combo box. I placed it on rebar control and when I resize it it flashes. It is not simple to change it but you can still try. You should get WNDCLASSEX structure of specific control class with GetClassInfoEx. Do not forget to fill cbsize of this structure prior to using it. Then change style and class name. Register you class. Then when creating control use you class which has the same attributes but another style.
0
 
LVL 1

Author Comment

by:tser
ID: 1411566
I guess we are out of luck when dealing with common controls in the dialog box resouce. Unless we create them on the fly.
0

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question