Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActive Desktop control fro VC++ Pin
Dr Soong14-Apr-03 8:59
Dr Soong14-Apr-03 8:59 
GeneralRe: Active Desktop control fro VC++ Pin
Miszou14-Apr-03 11:12
Miszou14-Apr-03 11:12 
Generaloverriding functions Pin
ns14-Apr-03 8:45
ns14-Apr-03 8:45 
GeneralRe: overriding functions Pin
Chris Losinger14-Apr-03 9:04
professionalChris Losinger14-Apr-03 9:04 
GeneralRe: overriding functions Pin
ns14-Apr-03 9:12
ns14-Apr-03 9:12 
GeneralRe: overriding functions Pin
Maximilien14-Apr-03 9:25
Maximilien14-Apr-03 9:25 
Generalah! I see Pin
ns15-Apr-03 0:53
ns15-Apr-03 0:53 
GeneralRe: overriding functions Pin
Chris Losinger14-Apr-03 10:17
professionalChris Losinger14-Apr-03 10:17 
ns wrote:
SO having the keyword "virtual" isnt necessary to make a function overridable it seems.

true, sortof.

the virtual option affects who calls your override. if you override a non-virtual function, your function will not be called if the caller thinks he's using a base-class object. ie. if the caller only has a CWnd pointer and calls a non-virtual function on your CMyWnd object, he will end up in the base class function, not your override. the effect of the virtual keyword is to allow callers without knowledge of derived classes to call function in the derived class.

-c



Image tools: ThumbNailer, Bobber, TIFFAssembler
GeneralRe: overriding functions Pin
Beer14-Apr-03 11:26
Beer14-Apr-03 11:26 
GeneralRe: overriding functions Pin
Ravi Bhavnani14-Apr-03 18:17
professionalRavi Bhavnani14-Apr-03 18:17 
GeneralThanks to everyone Pin
ns15-Apr-03 0:55
ns15-Apr-03 0:55 
QuestionSetPixel with GDI+ ? Pin
cromag14-Apr-03 8:44
cromag14-Apr-03 8:44 
AnswerRe: SetPixel with GDI+ ? Pin
J. Dunlap14-Apr-03 10:32
J. Dunlap14-Apr-03 10:32 
GeneralAbout missing in system memu Pin
jimNLX14-Apr-03 8:44
jimNLX14-Apr-03 8:44 
Questionderived from two classes..how to? Pin
ns14-Apr-03 8:25
ns14-Apr-03 8:25 
AnswerRe: derived from two classes..how to? Pin
Dominik Reichl14-Apr-03 8:39
Dominik Reichl14-Apr-03 8:39 
GeneralThank you Pin
ns14-Apr-03 8:40
ns14-Apr-03 8:40 
GeneralCan't run compiler after install on Win2000 Pin
jimNLX14-Apr-03 8:24
jimNLX14-Apr-03 8:24 
GeneralRe: Can't run compiler after install on Win2000 Pin
Chris Richardson15-Apr-03 8:49
Chris Richardson15-Apr-03 8:49 
GeneralMacros in Visual Studio 7.0 Pin
Anonymous14-Apr-03 7:14
Anonymous14-Apr-03 7:14 
GeneralRe: Macros in Visual Studio 7.0 Pin
Gary Wheeler14-Apr-03 10:30
Gary Wheeler14-Apr-03 10:30 
GeneralRe: Macros in Visual Studio 7.0 Pin
billb211214-Apr-03 10:56
billb211214-Apr-03 10:56 
GeneralSlow CreateCompatibleBitmap() and BitBlt() Pin
Dean Michaud14-Apr-03 7:00
Dean Michaud14-Apr-03 7:00 
GeneralMultiple inheritance Pin
Gary Kirkham14-Apr-03 5:42
Gary Kirkham14-Apr-03 5:42 
GeneralRe: Multiple inheritance Pin
Navin14-Apr-03 5:50
Navin14-Apr-03 5:50 

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.