Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Failure in SendMessage in Retail Verrsion only, has me baffled. Pin
SandipG 8-Jun-10 20:04
SandipG 8-Jun-10 20:04 
GeneralRe: Failure in SendMessage in Retail Verrsion only, has me baffled. Pin
Bram van Kampen8-Jun-10 21:46
Bram van Kampen8-Jun-10 21:46 
GeneralRe: Failure in SendMessage in Retail Verrsion only, has me baffled. Pin
SandipG 8-Jun-10 22:03
SandipG 8-Jun-10 22:03 
GeneralRe: Failure in SendMessage in Retail Verrsion only, has me baffled. Pin
Kelly Herald9-Jun-10 7:03
Kelly Herald9-Jun-10 7:03 
AnswerRe: Failure in SendMessage in Retail Verrsion only, has me baffled.(SOLVED) Pin
Bram van Kampen9-Jun-10 10:38
Bram van Kampen9-Jun-10 10:38 
AnswerRe: Failure in SendMessage in Retail Verrsion only, has me baffled. Pin
Richard MacCutchan8-Jun-10 22:37
mveRichard MacCutchan8-Jun-10 22:37 
GeneralRe: Failure in SendMessage in Retail Verrsion only, has me baffled. Pin
Bram van Kampen9-Jun-10 10:34
Bram van Kampen9-Jun-10 10:34 
QuestionCalling a function from another Class [newbie question] Pin
Schehaider_Aymen8-Jun-10 9:46
Schehaider_Aymen8-Jun-10 9:46 
Hello all,

i know it's a newbie question but i couldn't find a replic or a sample code for such stuf.

I have a CFormView Class and a CTest Class Derived CEdit Class.

on both of them i have the OnKeyDown function, but what i want to do is to call the OnKeyDown fucnt of the deriver CEdit Class from the first one..

I declared a var with CTest var on the CFormView class and in the ONKeyDown (of the CFormView i did like this

void CMy01View::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	this->cd2.OnKeyDown(nChar, nRepCnt, nFlags);
}


and here the one of the CTest Class

void CTest::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	
	MessageBox("Blood 2");
	CEdit::OnKeyDown(nChar, nRepCnt, nFlags);
	
}


All go right but when i run it nothing will happen ?? how could i fix it ?? Thnk you
"The Ultimate Limit Is Only Your Imagination."

AnswerRe: Calling a function from another Class [newbie question] Pin
Aescleal8-Jun-10 10:36
Aescleal8-Jun-10 10:36 
AnswerRe: Calling a function from another Class [newbie question] Pin
Garth J Lancaster8-Jun-10 11:52
professionalGarth J Lancaster8-Jun-10 11:52 
GeneralRe: Calling a function from another Class [newbie question] Pin
Schehaider_Aymen8-Jun-10 21:24
Schehaider_Aymen8-Jun-10 21:24 
QuestionBlank lines to seperate methods Pin
Steven Solberg8-Jun-10 9:03
Steven Solberg8-Jun-10 9:03 
GeneralRe: Blank lines to seperate methods Pin
David Crow8-Jun-10 9:39
David Crow8-Jun-10 9:39 
AnswerRe: Blank lines to seperate methods Pin
Richard MacCutchan8-Jun-10 11:01
mveRichard MacCutchan8-Jun-10 11:01 
GeneralRe: Blank lines to seperate methods ????????????????????????? Pin
Bram van Kampen8-Jun-10 14:24
Bram van Kampen8-Jun-10 14:24 
GeneralRe: Blank lines to seperate methods ????????????????????????? Pin
Steven Solberg8-Jun-10 21:09
Steven Solberg8-Jun-10 21:09 
GeneralRe: Blank lines to seperate methods ????????????????????????? Pin
Richard MacCutchan8-Jun-10 22:12
mveRichard MacCutchan8-Jun-10 22:12 
QuestionMS Access Pin
rdop8-Jun-10 8:42
rdop8-Jun-10 8:42 
AnswerRe: MS Access Pin
David Crow8-Jun-10 9:37
David Crow8-Jun-10 9:37 
QuestionCode Submission Pin
Danzy838-Jun-10 7:23
Danzy838-Jun-10 7:23 
AnswerRe: Code Submission Pin
David Crow8-Jun-10 7:27
David Crow8-Jun-10 7:27 
AnswerRe: Code Submission Pin
Maximilien8-Jun-10 7:29
Maximilien8-Jun-10 7:29 
GeneralRe: Code Submission Pin
Danzy838-Jun-10 7:33
Danzy838-Jun-10 7:33 
AnswerRe: Code Submission Pin
Richard MacCutchan8-Jun-10 11:04
mveRichard MacCutchan8-Jun-10 11:04 
QuestionGetting API Messages into C++ DLL Pin
ayaz.hassan8-Jun-10 5:52
ayaz.hassan8-Jun-10 5:52 

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.