Click here to Skip to main content
15,916,412 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Will WM_SIZE repaint whole client area???? Pin
Bhavesh Bagadiya28-Aug-07 0:10
Bhavesh Bagadiya28-Aug-07 0:10 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
CodeMak28-Aug-07 0:43
CodeMak28-Aug-07 0:43 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
Bhavesh Bagadiya28-Aug-07 1:04
Bhavesh Bagadiya28-Aug-07 1:04 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
CodeMak28-Aug-07 1:13
CodeMak28-Aug-07 1:13 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
Nishad S28-Aug-07 1:09
Nishad S28-Aug-07 1:09 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
CodeMak28-Aug-07 1:16
CodeMak28-Aug-07 1:16 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
Bhavesh Bagadiya28-Aug-07 1:27
Bhavesh Bagadiya28-Aug-07 1:27 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
Nishad S28-Aug-07 1:34
Nishad S28-Aug-07 1:34 
It is true that the window is not painted while resizing.
But it will be painted in all other scenarios. That is at the time of creation, when some window moves over it, etc.
Hope you got the idea.

And I found that your code for drawing a rectangle in the centre of the window is not fine.

You may have to update it as,

CPaintDC dc( this );

CRect rect;
GetClientRect( &rect );
dc.FillSolidRect( &rect, RGB( 255, 0, 255 ));
const int nWidth = 100;
const int nHeight = 100;
int nX1 = ( rect.Width() - nWidth ) / 2;
int nY1 = ( rect.Height() - nHeight ) / 2;
dc.Rectangle( nX1, nY1, nX1 + nWidth, nY1 + nHeight );


- NS -

GeneralRe: Will WM_SIZE repaint whole client area???? Pin
CodeMak28-Aug-07 1:43
CodeMak28-Aug-07 1:43 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
Bhavesh Bagadiya28-Aug-07 2:02
Bhavesh Bagadiya28-Aug-07 2:02 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
CodeMak28-Aug-07 2:08
CodeMak28-Aug-07 2:08 
GeneralRe: Will WM_SIZE repaint whole client area???? Pin
Nishad S28-Aug-07 18:36
Nishad S28-Aug-07 18:36 
Questioncalltips in scintilla Pin
mirraa27-Aug-07 21:21
mirraa27-Aug-07 21:21 
AnswerRe: calltips in scintilla Pin
Russell'27-Aug-07 23:35
Russell'27-Aug-07 23:35 
GeneralRe: calltips in scintilla Pin
mirraa28-Aug-07 0:48
mirraa28-Aug-07 0:48 
GeneralRe: calltips in scintilla Pin
Russell'28-Aug-07 1:01
Russell'28-Aug-07 1:01 
GeneralRe: calltips in scintilla Pin
Russell'28-Aug-07 1:13
Russell'28-Aug-07 1:13 
GeneralRe: calltips in scintilla Pin
mirraa28-Aug-07 1:22
mirraa28-Aug-07 1:22 
GeneralRe: calltips in scintilla Pin
Russell'28-Aug-07 1:43
Russell'28-Aug-07 1:43 
QuestionIDispatch question Pin
themancer27-Aug-07 20:31
themancer27-Aug-07 20:31 
QuestionVideo Parameters Pin
tyagineha27-Aug-07 20:10
tyagineha27-Aug-07 20:10 
Questionabout _CRT_DEBUGGER_HOOK function. Pin
blackeye200427-Aug-07 19:10
blackeye200427-Aug-07 19:10 
AnswerRe: about _CRT_DEBUGGER_HOOK function. Pin
Naveen27-Aug-07 19:48
Naveen27-Aug-07 19:48 
GeneralRe: about _CRT_DEBUGGER_HOOK function. Pin
blackeye200427-Aug-07 20:03
blackeye200427-Aug-07 20:03 
AnswerRe: about _CRT_DEBUGGER_HOOK function. Pin
jk chan27-Aug-07 19:52
jk chan27-Aug-07 19:52 

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.