Solved

CS_VRERAW and CS_HREDRAW

Posted on 1998-02-25
2
340 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
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 50 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

810 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