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

C / C++ / MFC

 
GeneralRe: controlling a IE window - scrolling down Pin
djpitagora4-Aug-05 6:22
djpitagora4-Aug-05 6:22 
GeneralReduce CImageList memory consumption Pin
Daniel C.3-Aug-05 4:06
Daniel C.3-Aug-05 4:06 
QuestionHow do i Paint tab conrtol? Pin
Anonymous3-Aug-05 3:48
Anonymous3-Aug-05 3:48 
AnswerRe: How do i Paint tab conrtol? Pin
Hiigara3-Aug-05 4:58
Hiigara3-Aug-05 4:58 
GeneralClistCtrl More help needed Pin
Halawlaws3-Aug-05 3:40
Halawlaws3-Aug-05 3:40 
GeneralRe: ClistCtrl More help needed Pin
Jose Lamas Rios3-Aug-05 4:07
Jose Lamas Rios3-Aug-05 4:07 
GeneralRe: ClistCtrl More help needed Pin
Halawlaws3-Aug-05 4:50
Halawlaws3-Aug-05 4:50 
GeneralRe: ClistCtrl More help needed Pin
Jose Lamas Rios3-Aug-05 5:16
Jose Lamas Rios3-Aug-05 5:16 
GeneralRe: ClistCtrl More help needed Pin
Halawlaws3-Aug-05 20:44
Halawlaws3-Aug-05 20:44 
GeneralRe: ClistCtrl More help needed Pin
David Crow3-Aug-05 4:45
David Crow3-Aug-05 4:45 
GeneralRe: ClistCtrl More help needed Pin
Halawlaws3-Aug-05 4:51
Halawlaws3-Aug-05 4:51 
GeneralWhy on earth the windows edit control caret doesn't blink... Pin
Hiigara3-Aug-05 3:07
Hiigara3-Aug-05 3:07 
GeneralRe: Why on earth the windows edit control caret doesn't blink... Pin
Hiigara3-Aug-05 22:12
Hiigara3-Aug-05 22:12 
Questionconvert BSTR to LPSTR? Pin
Scozturk3-Aug-05 2:50
professionalScozturk3-Aug-05 2:50 
AnswerRe: convert BSTR to LPSTR? Pin
Jose Lamas Rios3-Aug-05 3:23
Jose Lamas Rios3-Aug-05 3:23 
GeneralRe: convert BSTR to LPSTR? Pin
Scozturk3-Aug-05 3:40
professionalScozturk3-Aug-05 3:40 
Generalplease help Pin
Anonymous3-Aug-05 2:26
Anonymous3-Aug-05 2:26 
GeneralRe: please help Pin
Scozturk3-Aug-05 2:51
professionalScozturk3-Aug-05 2:51 
GeneralRe: please help Pin
Marc Soleda3-Aug-05 3:42
Marc Soleda3-Aug-05 3:42 
GeneralRe: please help Pin
rajeshvv3-Aug-05 4:14
rajeshvv3-Aug-05 4:14 
GeneralRe: please help Pin
Marc Soleda3-Aug-05 4:29
Marc Soleda3-Aug-05 4:29 
QuestionPossible? Injection of a CWndEx-Class in MFC-structure? Pin
ClockDivider3-Aug-05 1:49
ClockDivider3-Aug-05 1:49 
AnswerRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
viveking3-Aug-05 2:38
sussviveking3-Aug-05 2:38 
AnswerRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
GKarRacer3-Aug-05 6:07
GKarRacer3-Aug-05 6:07 
No, this is not directly possible in the C++ language. I've wanted to do this myself on occasion along with making some necessary functions virtual that for some inexplicable reason are not.

But there are ways around it to get the job done. Depending on what you'd like to achieve the simplest thing you can do is just to use a global function that takes a CWnd as a parameter. You won't be able to access protected members, but for most cases this generic function should be able to achieve what you want. It's not as pretty certainly, but the most important thing is to get the program to work.

Another approach (at least for objects you directly create) would be to multiply inherit. This wouldn't apply to objects that are dynamically created, however.

GeneralRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
ClockDivider3-Aug-05 7:34
ClockDivider3-Aug-05 7:34 

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.