Click here to Skip to main content
15,890,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSQL statement problem Pin
Zombie_Inc2-Jan-04 12:38
Zombie_Inc2-Jan-04 12:38 
GeneralRe: SQL statement problem Pin
l a u r e n2-Jan-04 14:22
l a u r e n2-Jan-04 14:22 
GeneralRe: SQL statement problem Pin
Zombie_Inc3-Jan-04 0:38
Zombie_Inc3-Jan-04 0:38 
GeneralRe: SQL statement problem Pin
Zombie_Inc3-Jan-04 2:02
Zombie_Inc3-Jan-04 2:02 
QuestionHow do you Simulate a key press Pin
Steve Messer2-Jan-04 12:02
Steve Messer2-Jan-04 12:02 
AnswerRe: How do you Simulate a key press Pin
Gary R. Wheeler2-Jan-04 14:06
Gary R. Wheeler2-Jan-04 14:06 
GeneralRe: How do you Simulate a key press Pin
Steve Messer2-Jan-04 14:34
Steve Messer2-Jan-04 14:34 
Generalmenu dropshadow flickers when ontop of MDI child window Pin
Hin Jang2-Jan-04 11:07
Hin Jang2-Jan-04 11:07 
background info:

i currently have an MDI app (created with Visual Studio .NET 2003) that can properly create new child windows. each of these windows contains a rendered scene via OpenGL. all of my OpenGL calls are invoked from within an overloaded OnPaint() method. i enabled double-buffering so animations are smooth. i also overloaded the OnEraseBkgnd() method so the background will not be repainted when the child window is resized.

the problem:

when i make a selection from the main menu bar i noticed the menu dropshadow flickers when it occludes/overlays a portion of the child window.

my first assumption was that my scenes were too complex; the flickering exposes the slow "repaints" of the scene. as such, i made the necessary changes so that each child window only displays a blank grey background. the problem, however, persists for even this most simple of scenes.

i next looked up the online documentation regarding the CWnd::OnPaint() method. the docs state the framework calls OnPaint() only once by default. to verify this i set a breakpoint in my OnPaint() method only to discover it gets called dozens of times!

i suspect the flickering is due to the framework calling the OnPaint() over and over and over again. an artifact from the time-consuming "repaints" is this flickering of the menu dropshadows.

does anyone have any suggestions on how to ensure that OnPaint() is only called when necessary? any help would be greatly appreicated. thanks.


Generalinclude file error Pin
Angel Kid2-Jan-04 6:28
Angel Kid2-Jan-04 6:28 
GeneralRe: include file error Pin
volkan8782-Jan-04 8:06
volkan8782-Jan-04 8:06 
GeneralRe: include file error Pin
Angel Kid2-Jan-04 12:50
Angel Kid2-Jan-04 12:50 
GeneralRe: include file error Pin
Gary R. Wheeler2-Jan-04 14:09
Gary R. Wheeler2-Jan-04 14:09 
General.Net rebuilds my solution all the time Pin
Asger M2-Jan-04 5:18
Asger M2-Jan-04 5:18 
GeneralRe: .Net rebuilds my solution all the time Pin
Michael Dunn2-Jan-04 6:53
sitebuilderMichael Dunn2-Jan-04 6:53 
GeneralRe: .Net rebuilds my solution all the time Pin
Asger M2-Jan-04 7:36
Asger M2-Jan-04 7:36 
GeneralSeeking for ideas on data handling... Pin
vmaltsev2-Jan-04 4:30
vmaltsev2-Jan-04 4:30 
GeneralRe: Seeking for ideas on data handling... Pin
l a u r e n2-Jan-04 9:48
l a u r e n2-Jan-04 9:48 
GeneralCPU id Pin
Mazdak2-Jan-04 2:26
Mazdak2-Jan-04 2:26 
GeneralRe: CPU id Pin
Mark Tutt2-Jan-04 2:50
Mark Tutt2-Jan-04 2:50 
GeneralRe: CPU id Pin
Mazdak2-Jan-04 3:00
Mazdak2-Jan-04 3:00 
GeneralRe: CPU id Pin
Mark Tutt2-Jan-04 3:14
Mark Tutt2-Jan-04 3:14 
GeneralRe: CPU id Pin
Mazdak2-Jan-04 3:44
Mazdak2-Jan-04 3:44 
GeneralRe: CPU id Pin
Mazdak2-Jan-04 3:10
Mazdak2-Jan-04 3:10 
GeneralSorting problems Pin
Rafael Fernández López2-Jan-04 2:16
Rafael Fernández López2-Jan-04 2:16 
GeneralRe: Sorting problems Pin
utkarsharma2-Jan-04 2:42
utkarsharma2-Jan-04 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.