Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: New to VC++ Pin
Yulianto.1-Feb-05 14:30
Yulianto.1-Feb-05 14:30 
GeneralRe: New to VC++ Pin
toxcct2-Feb-05 4:38
toxcct2-Feb-05 4:38 
GeneralRe: New to VC++ Pin
Yulianto.2-Feb-05 14:39
Yulianto.2-Feb-05 14:39 
Generaluse crystal report in visul c++(please help me) Pin
javad_200531-Jan-05 19:29
javad_200531-Jan-05 19:29 
Questioncan i use InValidateRect() to refresh my desktop Pin
uday__m31-Jan-05 19:16
uday__m31-Jan-05 19:16 
AnswerRe: can i use InValidateRect() to refresh my desktop Pin
ThatsAlok31-Jan-05 20:18
ThatsAlok31-Jan-05 20:18 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
uday__m31-Jan-05 22:10
uday__m31-Jan-05 22:10 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
Blake Miller1-Feb-05 4:45
Blake Miller1-Feb-05 4:45 
Try this instead, you were missing sending afddress of rectangle to InvalidateRect:

InvalidateRect(
HWND hWnd, // handle to window
CONST RECT* lpRect, // rectangle coordinates
BOOL bErase // erase state
);

RECT TheRect;<br />
HWND hDesktop = ::GetDesktopWindow();<br />
::GetWindowRect ( hDesktop, &TheRect );<br />
::InvalidateRect( hDesktop, &TheRect, TRUE );


If that does not do it for you, you can just invalidate entire client area of window:

::InvalidateRect( ::GetDesktopWindow(), NULL, TRUE );
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
uday__m1-Feb-05 16:22
uday__m1-Feb-05 16:22 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
Blake Miller3-Feb-05 4:37
Blake Miller3-Feb-05 4:37 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
uday__m3-Feb-05 17:36
uday__m3-Feb-05 17:36 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
uday__m3-Feb-05 17:45
uday__m3-Feb-05 17:45 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
Ryan Binns1-Feb-05 12:53
Ryan Binns1-Feb-05 12:53 
GeneralRe: can i use InValidateRect() to refresh my desktop Pin
uday__m1-Feb-05 16:23
uday__m1-Feb-05 16:23 
AnswerRe: can i use InValidateRect() to refresh my desktop Pin
sushil sati17-Feb-10 21:08
sushil sati17-Feb-10 21:08 
Generali can not pass CStringArray from dll Pin
vc-programmer-31-Jan-05 18:08
vc-programmer-31-Jan-05 18:08 
GeneralRe: i can not pass CStringArray from dll Pin
Selvam R1-Feb-05 1:38
professionalSelvam R1-Feb-05 1:38 
GeneralRe: i can not pass CStringArray from dll Pin
Blake Miller1-Feb-05 4:51
Blake Miller1-Feb-05 4:51 
GeneralRe:Debug Assertion Failed Pin
vc-programmer-1-Feb-05 17:16
vc-programmer-1-Feb-05 17:16 
GeneralRe:Debug Assertion Failed Pin
Blake Miller3-Feb-05 4:41
Blake Miller3-Feb-05 4:41 
GeneralMonitoring a process Pin
SiddharthAtw31-Jan-05 18:06
SiddharthAtw31-Jan-05 18:06 
GeneralRe: Monitoring a process Pin
rwestgraham31-Jan-05 18:50
rwestgraham31-Jan-05 18:50 
GeneralRe: Monitoring a process Pin
Blake Miller1-Feb-05 4:54
Blake Miller1-Feb-05 4:54 
GeneralAutomation Server Pin
Anonymous31-Jan-05 18:05
Anonymous31-Jan-05 18:05 
GeneralCComboBox Properties Pin
LighthouseJ31-Jan-05 17:17
LighthouseJ31-Jan-05 17:17 

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.