Click here to Skip to main content
15,886,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows message, Pin
Stuart Dootson23-Jun-09 23:05
professionalStuart Dootson23-Jun-09 23:05 
GeneralRe: Windows message, Pin
Stuart Dootson23-Jun-09 23:02
professionalStuart Dootson23-Jun-09 23:02 
GeneralRe: Windows message, Pin
birajendu24-Jun-09 1:30
birajendu24-Jun-09 1:30 
QuestionHow to redirect Telnet and Ftp in windows Pin
ssm198411923-Jun-09 20:03
ssm198411923-Jun-09 20:03 
AnswerRe: How to redirect Telnet and Ftp in windows Pin
Stuart Dootson23-Jun-09 21:37
professionalStuart Dootson23-Jun-09 21:37 
GeneralRe: How to redirect Telnet and Ftp in windows Pin
ssm198411924-Jun-09 3:02
ssm198411924-Jun-09 3:02 
GeneralRe: How to redirect Telnet and Ftp in windows Pin
Stuart Dootson24-Jun-09 3:08
professionalStuart Dootson24-Jun-09 3:08 
QuestionGetActiveWindow Pin
prithaa23-Jun-09 19:15
prithaa23-Jun-09 19:15 
Hello,

I have a class TableFrame

class TableFrame : public CMDIChildWnd
{
}

I have written the following code in MainFrame where OpenNewWindow function opens a new window and WhichNewWindow function gets the active window and calls the function of TableFrame.But I am not etting the pointer of TableFrame and STATIC_DOWNCAST gives Unhandled Exception.
How do I et the active window pointer of TableFrame.


void MainFrame::OpenNewWindow()
{
CMDIChildWnd* ChildPt = CreateNewChild(RUNTIME_CLASS(TableFrame),
TITLE_MachineOpHrs, m_hMDIMenu, NULL);
TableFrame* pF = STATIC_DOWNCAST(TableFrame,ChildPt);
}

void MainFrame::WhichNewWindow()
{
CWnd* p = GetActiveWindow();

TableFrame* pT = STATIC_DOWNCAST(TableFrame,p);

pT->Insert();
}



Thanks
Pritha
AnswerRe: GetActiveWindow Pin
Naveen23-Jun-09 20:02
Naveen23-Jun-09 20:02 
GeneralRe: GetActiveWindow Pin
prithaa24-Jun-09 1:53
prithaa24-Jun-09 1:53 
Questionconvert wchar to CString& Pin
Rakesh523-Jun-09 18:59
Rakesh523-Jun-09 18:59 
AnswerRe: convert wchar to CString& Pin
«_Superman_»23-Jun-09 19:21
professional«_Superman_»23-Jun-09 19:21 
GeneralRe: convert wchar to CString& Pin
Rakesh523-Jun-09 19:36
Rakesh523-Jun-09 19:36 
GeneralRe: convert wchar to CString& Pin
Cedric Moonen23-Jun-09 20:10
Cedric Moonen23-Jun-09 20:10 
GeneralRe: convert wchar to CString& Pin
Rajesh R Subramanian23-Jun-09 20:13
professionalRajesh R Subramanian23-Jun-09 20:13 
AnswerRe: convert wchar to CString& Pin
Cedric Moonen23-Jun-09 20:07
Cedric Moonen23-Jun-09 20:07 
GeneralRe: convert wchar to CString& Pin
Rakesh523-Jun-09 20:20
Rakesh523-Jun-09 20:20 
AnswerRe: convert wchar to CString& Pin
Rajesh R Subramanian23-Jun-09 20:12
professionalRajesh R Subramanian23-Jun-09 20:12 
QuestionTabbed control from Win 32 Pin
birajendu23-Jun-09 18:05
birajendu23-Jun-09 18:05 
QuestionC++ Compiler Warnings Pin
dipuks23-Jun-09 13:37
dipuks23-Jun-09 13:37 
AnswerRe: C++ Compiler Warnings Pin
Luc Pattyn23-Jun-09 14:09
sitebuilderLuc Pattyn23-Jun-09 14:09 
AnswerRe: C++ Compiler Warnings Pin
N a v a n e e t h23-Jun-09 15:56
N a v a n e e t h23-Jun-09 15:56 
GeneralRe: C++ Compiler Warnings Pin
David Crow24-Jun-09 3:11
David Crow24-Jun-09 3:11 
AnswerRe: C++ Compiler Warnings Pin
«_Superman_»23-Jun-09 16:26
professional«_Superman_»23-Jun-09 16:26 
AnswerRe: C++ Compiler Warnings Pin
KarstenK23-Jun-09 21:31
mveKarstenK23-Jun-09 21:31 

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.