Click here to Skip to main content
15,867,308 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: overloading operator<<() vs. namespaces Pin
Rick York3-Aug-11 12:36
mveRick York3-Aug-11 12:36 
QuestionMapping of file Pin
sarfaraznawaz28-Jul-11 21:42
sarfaraznawaz28-Jul-11 21:42 
AnswerRe: Mapping of file Pin
«_Superman_»29-Jul-11 3:37
professional«_Superman_»29-Jul-11 3:37 
GeneralRe: Mapping of file Pin
sarfaraznawaz29-Jul-11 20:30
sarfaraznawaz29-Jul-11 20:30 
GeneralRe: Mapping of file Pin
Richard Andrew x6431-Jul-11 6:30
professionalRichard Andrew x6431-Jul-11 6:30 
QuestionIssue with ShellExecute on Windows 7 in windows service application Pin
Ganesh_T28-Jul-11 21:14
Ganesh_T28-Jul-11 21:14 
AnswerRe: Issue with ShellExecute on Windows 7 in windows service application Pin
«_Superman_»29-Jul-11 3:25
professional«_Superman_»29-Jul-11 3:25 
QuestionGet Active WIndow Name Pin
Anu_Bala28-Jul-11 20:35
Anu_Bala28-Jul-11 20:35 
Hi,
In my MDI application im loading one DialogBar in mainframe.But i want to show that dialog bar when some child window invokes(GroupView,TrendView).For other windows it should be in hide(GraphView).So for all functions used to invoking child window from CMainFrame im hiding the toolbae like this.
void CMainFrame::OnGroupview()
{
.
.
.
m_RecentAlarms.ShowWindow(SW_HIDE);
}


For some view
void CMainFrame::OnGroupview()
{
.
.
.m_RecentAlarms.ShowWindow(SW_SHOW);
}


So,when i click TrendView i get the dialog bar,then when i click GraphView the dialgobar get hided.But Again when i click TrendView I didnt get Dialogbar.Because the application is multiple window.The previous TrendView is behind the graphview,when i invoke just it show in front.

So my idea is i have one thread in Mainframe,this function updates some values in all views.In that i will check whether the Active View is TrendView,if it so then dialog bar is in SW_SHOW other wise it is SW_HIDE.

I used this..

CMDIChildWnd* pChild = ((CMainFrame*)AfxGetMainWnd())->MDIGetActive();

But i dont know how to get the active view is TrendView only....

Pls help me in this issue.
Anu

AnswerRe: Get Active WIndow Name Pin
«_Superman_»29-Jul-11 3:41
professional«_Superman_»29-Jul-11 3:41 
QuestionTypedef struct help Pin
WebDev.ChrisG28-Jul-11 9:13
WebDev.ChrisG28-Jul-11 9:13 
AnswerRe: Typedef struct help Pin
Richard Andrew x6428-Jul-11 9:20
professionalRichard Andrew x6428-Jul-11 9:20 
GeneralRe: Typedef struct help Pin
WebDev.ChrisG28-Jul-11 9:23
WebDev.ChrisG28-Jul-11 9:23 
GeneralRe: Typedef struct help Pin
Richard Andrew x6428-Jul-11 9:25
professionalRichard Andrew x6428-Jul-11 9:25 
GeneralRe: Typedef struct help Pin
Albert Holguin28-Jul-11 9:43
professionalAlbert Holguin28-Jul-11 9:43 
GeneralRe: Typedef struct help Pin
Albert Holguin28-Jul-11 10:11
professionalAlbert Holguin28-Jul-11 10:11 
QuestionIs CString really based on TCHAR? Pin
Dean Seo27-Jul-11 20:50
Dean Seo27-Jul-11 20:50 
AnswerRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian27-Jul-11 21:05
professionalRajesh R Subramanian27-Jul-11 21:05 
GeneralRe: Is CString really based on TCHAR? Pin
Dean Seo27-Jul-11 21:31
Dean Seo27-Jul-11 21:31 
AnswerRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian27-Jul-11 21:51
professionalRajesh R Subramanian27-Jul-11 21:51 
GeneralRe: Is CString really based on TCHAR? [modified] Pin
Dean Seo28-Jul-11 19:35
Dean Seo28-Jul-11 19:35 
AnswerRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian28-Jul-11 20:57
professionalRajesh R Subramanian28-Jul-11 20:57 
GeneralRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian29-Jul-11 8:16
professionalRajesh R Subramanian29-Jul-11 8:16 
GeneralRe: Is CString really based on TCHAR? Pin
Dean Seo30-Jul-11 20:43
Dean Seo30-Jul-11 20:43 
GeneralRe: Is CString really based on TCHAR? Pin
Rajesh R Subramanian30-Jul-11 22:44
professionalRajesh R Subramanian30-Jul-11 22:44 
Questionbasic C struct newbee question Pin
Member 811717127-Jul-11 9:01
Member 811717127-Jul-11 9:01 

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.