Maximizing Aplication
-
Hi! This should be a easy task for most of you, and it sounds easy, but i can't find in my SDI with MFC aplication where to use WS_MAXIMIZE, but i'm not sure if this is the appropriate procedure because WS_MAXIMIZE is related to a window not an aplication, can you help me? Thank you
-
Hi! This should be a easy task for most of you, and it sounds easy, but i can't find in my SDI with MFC aplication where to use WS_MAXIMIZE, but i'm not sure if this is the appropriate procedure because WS_MAXIMIZE is related to a window not an aplication, can you help me? Thank you
void CMainFrame::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base classCFrameWnd::ActivateFrame(SW\_MAXIMIZE);
}
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
void CMainFrame::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base classCFrameWnd::ActivateFrame(SW\_MAXIMIZE);
}
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
Thank you Nishant S, but what i see now is that the Frame maximizes but it quickly returns to its normal (not maximized) state, i tracked the int nCmdShow argument and i noticed that its value keep being 3 until it reaches a CFrameWnd function : void CFrameWnd::InitialUpdateFrame(CDocument* pDoc, BOOL bMakeVisible) inside this function, nCmdShow, returns to its 'default' value 1, why does this happends? Thanks
-
Thank you Nishant S, but what i see now is that the Frame maximizes but it quickly returns to its normal (not maximized) state, i tracked the int nCmdShow argument and i noticed that its value keep being 3 until it reaches a CFrameWnd function : void CFrameWnd::InitialUpdateFrame(CDocument* pDoc, BOOL bMakeVisible) inside this function, nCmdShow, returns to its 'default' value 1, why does this happends? Thanks
I created a new SDI app using VC++ 6 and added the code I had shown. And the app started maximized and without a flicker as well. If it returns to a normal state for you, you must have over ridden some other functions as well. Do this :- (1) Create a fresh SDI app (2) Use the code I had shown in the first post Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
I created a new SDI app using VC++ 6 and added the code I had shown. And the app started maximized and without a flicker as well. If it returns to a normal state for you, you must have over ridden some other functions as well. Do this :- (1) Create a fresh SDI app (2) Use the code I had shown in the first post Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
Well, i did it, and it worked, i don't know why it doesn't in my application, what do you think is most probable to be happening? What else can i look for to find where am i iver ridden other functions, i keep on debbuging but i can't find the reasin for the Frame to come back to its 'normal' state! Thank you
-
I created a new SDI app using VC++ 6 and added the code I had shown. And the app started maximized and without a flicker as well. If it returns to a normal state for you, you must have over ridden some other functions as well. Do this :- (1) Create a fresh SDI app (2) Use the code I had shown in the first post Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
Well, i guess i found the reason, when i change windows i use: pNewActiveView->Create(NULL, NULL, 0L, CFrameWnd::rectDefault, this, ViewID, &context); pNewActiveView->OnInitialUpdate(); maybe its because of the CFrameWnd::rectDefault that it over rides that argument, what do you think? How can i change it to maximized, i look at its member function and variables but nothing seemed to fit with my intents! Thanks
-
I created a new SDI app using VC++ 6 and added the code I had shown. And the app started maximized and without a flicker as well. If it returns to a normal state for you, you must have over ridden some other functions as well. Do this :- (1) Create a fresh SDI app (2) Use the code I had shown in the first post Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
Well, it was not what i expected :( I'll trying to find witch function i over ride, if there is someone who has a ideia i would appreciate very much an advise.
-
Well, it was not what i expected :( I'll trying to find witch function i over ride, if there is someone who has a ideia i would appreciate very much an advise.
Hoorah, viva!!! I found it!! I was making m_pMainWnd->ShowWindow(TRUE); instead of m_pMainWnd->ShowWindow(SW_SHOW); in my C..app file Thank you for your time