Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make any DialogBox as a child of CMainFrm in an MDI App? Pin
Anonymous11-Feb-05 1:13
Anonymous11-Feb-05 1:13 
GeneralGET RESOURCES Pin
kedar.dave10-Feb-05 19:19
kedar.dave10-Feb-05 19:19 
GeneralRe: GET RESOURCES Pin
ThatsAlok10-Feb-05 19:42
ThatsAlok10-Feb-05 19:42 
GeneralRe: GET RESOURCES Pin
David Crow11-Feb-05 2:57
David Crow11-Feb-05 2:57 
QuestionMFC setdelay()?? Pin
Member 148449610-Feb-05 18:34
Member 148449610-Feb-05 18:34 
AnswerRe: MFC setdelay()?? Pin
Yulianto.10-Feb-05 23:09
Yulianto.10-Feb-05 23:09 
GeneralRe: MFC setdelay()?? Pin
Member 148449611-Feb-05 17:58
Member 148449611-Feb-05 17:58 
GeneralProblem with toggling windows. Pin
Anonymous10-Feb-05 18:16
Anonymous10-Feb-05 18:16 
Hello,

In my MDI application, i have two child windows and a child dialog Box. I can switch between any two child windows and i have event handler for toggling.

Following is the code-
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//..............
ON_COMMAND(IDM_TOGGLE_WINDOW, OnMenuToggleWindow)
//..............
END_MESSAGE_MAP()

void CMainFrame::OnMenuToggleWindow()
{
assert(isTerminalMode() || isDataMode()|| isFlightAnalysisMode());
CMainFrame::ActivateFrame(SW_SHOWMAXIMIZED);
::PostMessage(m_hWnd,SIZE_MAXIMIZED,0, 0);
if (isTerminalMode())// child window
//setDataMode();
setDataMode(); //child window
else if (isDataMode())
setFlightAnalysisMode(); //dialog Box (child)
else if (isFlightAnalysisMode())
setTerminalMode();
}

Now, all the windows are working properly but as soon as i switch to another window, everything stops working. I can still toggle windows, but
data doesn't get refreshed.
What should i do?



GeneralBrowse for folder and display contents in list control Pin
Ashman10-Feb-05 17:54
Ashman10-Feb-05 17:54 
GeneralRe: Browse for folder and display contents in list control Pin
David Crow11-Feb-05 3:05
David Crow11-Feb-05 3:05 
QuestionTo get filename from filepath..? Pin
Monisankar10-Feb-05 17:51
Monisankar10-Feb-05 17:51 
AnswerRe: To get filename from filepath..? Pin
ThatsAlok10-Feb-05 18:26
ThatsAlok10-Feb-05 18:26 
AnswerRe: To get filename from filepath..? Pin
rocky_pulley11-Feb-05 0:33
rocky_pulley11-Feb-05 0:33 
GeneralRe: To get filename from filepath..? Pin
rocky_pulley11-Feb-05 0:38
rocky_pulley11-Feb-05 0:38 
Generalporting 32 to 64 bit Pin
tssp10-Feb-05 17:15
tssp10-Feb-05 17:15 
GeneralRe: porting 32 to 64 bit Pin
Ryan Binns10-Feb-05 18:03
Ryan Binns10-Feb-05 18:03 
Questionhow to get a pointer to dialog associated with splitter view Pin
blue178910-Feb-05 17:02
sussblue178910-Feb-05 17:02 
GeneralHelp pls! How to fix splitter last row height Pin
dejavusoft10-Feb-05 16:19
dejavusoft10-Feb-05 16:19 
GeneralSerializing problem Pin
Yulianto.10-Feb-05 16:03
Yulianto.10-Feb-05 16:03 
GeneralRe: Serializing problem Pin
David Crow11-Feb-05 3:16
David Crow11-Feb-05 3:16 
GeneralC++ memory Pin
SnuhEyeless10-Feb-05 15:57
SnuhEyeless10-Feb-05 15:57 
GeneralRe: C++ memory Pin
rocky_pulley11-Feb-05 0:36
rocky_pulley11-Feb-05 0:36 
GeneralRe: C++ memory Pin
SnuhEyeless13-Feb-05 8:36
SnuhEyeless13-Feb-05 8:36 
GeneralPrevent closing in CPropertySheet Pin
Zero_divide_110-Feb-05 14:20
Zero_divide_110-Feb-05 14:20 
GeneralDrawing button Pin
joy00710-Feb-05 13:46
joy00710-Feb-05 13:46 

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.