Click here to Skip to main content
15,887,881 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ID_FILE_NEW causes application crashed Pin
David Crow8-Sep-09 4:35
David Crow8-Sep-09 4:35 
GeneralRe: ID_FILE_NEW causes application crashed [modified] Pin
transoft8-Sep-09 4:33
transoft8-Sep-09 4:33 
QuestionResize an image without a Window Pin
GeeBru7-Sep-09 10:48
GeeBru7-Sep-09 10:48 
AnswerRe: Resize an image without a Window Pin
Richard MacCutchan7-Sep-09 10:52
mveRichard MacCutchan7-Sep-09 10:52 
GeneralRe: Resize an image without a Window Pin
GeeBru7-Sep-09 10:58
GeeBru7-Sep-09 10:58 
GeneralRe: Resize an image without a Window Pin
Richard MacCutchan7-Sep-09 11:42
mveRichard MacCutchan7-Sep-09 11:42 
AnswerRe: Resize an image without a Window Pin
Stuart Dootson7-Sep-09 14:50
professionalStuart Dootson7-Sep-09 14:50 
QuestionCalling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Sternocera7-Sep-09 9:20
Sternocera7-Sep-09 9:20 
Hello,

I'm writing an MFC app that is in the style of MS outlook, with a CTreeView in the left hand pane, and a CFrameWnd, called CRightPaneFrame, that contains a view (which view varies, depending on which node on the CTreeView is selected) - a splitter application.

In the function that switches views, called by the CTreeView, the final thing we do is call RecalcLayout(), to have everything (re)drawn. This causes slight, although noticeable flicker in the left pane, as the Main frame of the application is (apparently) redrawn.

How can I prevent this flicker from occurring, by limiting redrawing to CRightPaneFrame and its current CView? According to MSDN, RecalcLayout is "Called by the framework when the standard control bars are toggled on or off or when the frame window is resized". This seems like overkill for this task (updating CRightPaneFrame/its underlying view). How all can I accomplish this task without redrawing my left pane?

Regards,
Sternocera
AnswerRe: Calling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Richard MacCutchan7-Sep-09 10:56
mveRichard MacCutchan7-Sep-09 10:56 
GeneralRe: Calling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Sternocera7-Sep-09 11:01
Sternocera7-Sep-09 11:01 
GeneralRe: Calling CFrameWnd::RecalcLayout causes slight flicker in left pane (CTreeView) of outlook style splitter app Pin
Richard MacCutchan7-Sep-09 11:26
mveRichard MacCutchan7-Sep-09 11:26 
QuestionHow to display SSL Certificate ? Pin
Member 38346307-Sep-09 7:42
Member 38346307-Sep-09 7:42 
Questionhow to generate a static library ".lib" from a DLL? Pin
bahareh6557-Sep-09 7:38
bahareh6557-Sep-09 7:38 
AnswerRe: how to generate a static library ".lib" from a DLL? Pin
Richard MacCutchan7-Sep-09 11:45
mveRichard MacCutchan7-Sep-09 11:45 
QuestionHow to create a login form by using a database in MFC dialog based application Pin
kokilag7-Sep-09 7:15
kokilag7-Sep-09 7:15 
AnswerRe: How to create a login form by using a database in MFC dialog based application Pin
Mike Danberg7-Sep-09 19:43
Mike Danberg7-Sep-09 19:43 
QuestionWhat is the difference between Parameter and Argument? Pin
nowrocktheworld7-Sep-09 3:57
nowrocktheworld7-Sep-09 3:57 
AnswerRe: Parameter or Argument Pin
Cedric Moonen7-Sep-09 4:15
Cedric Moonen7-Sep-09 4:15 
AnswerRe: Parameter or Argument Pin
Michael Schubert7-Sep-09 4:43
Michael Schubert7-Sep-09 4:43 
GeneralRe: Parameter or Argument Pin
nowrocktheworld7-Sep-09 4:50
nowrocktheworld7-Sep-09 4:50 
GeneralRe: Parameter or Argument Pin
Michael Schubert7-Sep-09 4:58
Michael Schubert7-Sep-09 4:58 
JokeRe: What is the difference between Parameter or Argument? Pin
Maximilien7-Sep-09 5:20
Maximilien7-Sep-09 5:20 
GeneralRe: What is the difference between Parameter or Argument? Pin
Michael Schubert7-Sep-09 6:16
Michael Schubert7-Sep-09 6:16 
AnswerRe: What is the difference between Parameter and Argument? Pin
Joe Woodbury7-Sep-09 8:46
professionalJoe Woodbury7-Sep-09 8:46 
AnswerRe: What is the difference between Parameter and Argument? Pin
dplong7-Sep-09 9:47
dplong7-Sep-09 9:47 

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.