Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Animated Vs html based websites Pin
Maximilien16-Mar-09 9:59
Maximilien16-Mar-09 9:59 
AnswerRe: Animated Vs html based websites Pin
llp00na16-Mar-09 10:09
llp00na16-Mar-09 10:09 
QuestionRe: Animated Vs html based websites Pin
Maximilien16-Mar-09 10:10
Maximilien16-Mar-09 10:10 
AnswerRe: Animated Vs html based websites Pin
llp00na16-Mar-09 10:11
llp00na16-Mar-09 10:11 
GeneralRe: Animated Vs html based websites Pin
bulg16-Mar-09 10:45
bulg16-Mar-09 10:45 
GeneralRe: Animated Vs html based websites Pin
llp00na16-Mar-09 11:18
llp00na16-Mar-09 11:18 
GeneralRe: Animated Vs html based websites Pin
led mike16-Mar-09 11:40
led mike16-Mar-09 11:40 
QuestionCtlColor question Pin
bulg16-Mar-09 8:41
bulg16-Mar-09 8:41 
Given this...
class CTopDlg : public CDialog {
...

then this works...
HBRUSH CTopDlg::OnCtlColor(CDC*,CWnd*,UINT){
  HBRUSH ret = CDialog::OnCtlColor(...)
  ... 
  return ret
}

but if I try this...
class CDerivedDlg : public CTopDlg {
...

then this does _not_ work...
HBRUSH CDerivedDlg::OnCtlColor(CDC*,CWnd*,UINT) { 
  HBRUSH ret = CTopDlg::OnCtlColor(...) // error: access non-static protected member function
  ...
  return ret
}

OnCtlColor is declared virtual in my CTopDlg class, and is also in a protected: section. It is _not_ virtual and _is_ protected in CDialog. The error is based on the rules of C++, but how did CTopDlg compile?
AnswerRe: CtlColor question Pin
bulg16-Mar-09 8:54
bulg16-Mar-09 8:54 
GeneralRe: CtlColor question Pin
Stuart Dootson16-Mar-09 9:20
professionalStuart Dootson16-Mar-09 9:20 
AnswerRe: CtlColor question Pin
Stuart Dootson16-Mar-09 9:17
professionalStuart Dootson16-Mar-09 9:17 
GeneralRe: CtlColor question Pin
bulg16-Mar-09 10:39
bulg16-Mar-09 10:39 
GeneralRe: CtlColor question Pin
Stuart Dootson16-Mar-09 10:51
professionalStuart Dootson16-Mar-09 10:51 
QuestionWanted: Eclipse C++ projects Pin
-+- Beth Mackenzie -+-16-Mar-09 7:54
-+- Beth Mackenzie -+-16-Mar-09 7:54 
AnswerRe: Wanted: Eclipse C++ projects Pin
Stuart Dootson16-Mar-09 8:50
professionalStuart Dootson16-Mar-09 8:50 
GeneralRe: Wanted: Eclipse C++ projects Pin
-+- Beth Mackenzie -+-16-Mar-09 22:51
-+- Beth Mackenzie -+-16-Mar-09 22:51 
Questionhow to find multiple instances of same top-level class name Pin
FISH78616-Mar-09 6:48
FISH78616-Mar-09 6:48 
AnswerRe: how to find multiple instances of same top-level class name Pin
«_Superman_»16-Mar-09 7:12
professional«_Superman_»16-Mar-09 7:12 
GeneralRe: how to find multiple instances of same top-level class name Pin
FISH78616-Mar-09 7:19
FISH78616-Mar-09 7:19 
GeneralRe: how to find multiple instances of same top-level class name Pin
FISH78617-Mar-09 17:35
FISH78617-Mar-09 17:35 
QuestionRe: how to find multiple instances of same top-level class name Pin
«_Superman_»17-Mar-09 23:54
professional«_Superman_»17-Mar-09 23:54 
AnswerRe: how to find multiple instances of same top-level class name Pin
FISH78618-Mar-09 2:21
FISH78618-Mar-09 2:21 
AnswerRe: how to find multiple instances of same top-level class name Pin
FISH78618-Mar-09 3:32
FISH78618-Mar-09 3:32 
QuestionCWinThread Question Pin
ForNow16-Mar-09 6:20
ForNow16-Mar-09 6:20 
AnswerRe: CWinThread Question Pin
«_Superman_»16-Mar-09 7:14
professional«_Superman_»16-Mar-09 7:14 

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.