Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
When you are using MFC programs, typically the function without the colons means it will invoke the MFC version of the function – some function that is a member of an MFC or other C++ class will be invoked.

Smile | :) CWnd::InvalidateRect

void InvalidateRect(<br />
   LPCRECT lpRect,<br />
   BOOL bErase = TRUE <br />
);



If you want to make sure you call the WIN32 API or GDI version of a function that has the same name as an MFC version of the function, then you put the two colons “::” in front of the function name.

This means the function is invoked at ‘global’ scope and not as a member function of some class.

Here is an example of calling it at global scope:

::InvalidateRect(<br />
  ::GetDesktopWindow(), // handle to window<br />
  NULL,                 // rectangle coordinates<br />
  TRUE                  // erase state<br />
);

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 
GeneralRe: CComboBox Properties Pin
Ryan Binns31-Jan-05 17:56
Ryan Binns31-Jan-05 17:56 
GeneralRe: CComboBox Properties Pin
LighthouseJ31-Jan-05 18:01
LighthouseJ31-Jan-05 18:01 

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.