Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to maximize child windows Pin
Ancient Dragon17-Aug-02 15:53
Ancient Dragon17-Aug-02 15:53 
AnswerRe: How to maximize child windows Pin
RickGavin17-Aug-02 18:45
RickGavin17-Aug-02 18:45 
GeneralRe: How to maximize child windows Pin
Ancient Dragon17-Aug-02 19:35
Ancient Dragon17-Aug-02 19:35 
GeneralRe: How to maximize child windows Pin
Neville Franks17-Aug-02 22:53
Neville Franks17-Aug-02 22:53 
CChildFrame::ActivateFrame() is a recomended way to do this. I don't know if your code in CChildFrame::OnSetFocus() will do anything usefull however.

With MDI only one window is ever maximized at a time. When you switch to another window, the current window is restored to its normal size and then the new window is maximized. This is all a pain in the backside as far as I'm concerned and I assume it has something to do with the early Win 3.x MDI implementation.

One of the problems with this is that you can see the windows flash to restored and then maximized size as you change MDI windows and open and close windows. This flashing varies across different windows versions.

In my CChildFrame::ActivateFrame() in ED for Windows (see sig) I wrap the call to CMDIChildWnd::ActivateFrame() in pMDIClient->SetRedraw( FALSE/TRUE ) calls.

Neville Franks, Author of ED for Windows. www.getsoft.com
GeneralRe: How to maximize child windows Pin
Kash18-Aug-02 5:06
Kash18-Aug-02 5:06 
GeneralRe: How to maximize child windows Pin
Neville Franks18-Aug-02 14:41
Neville Franks18-Aug-02 14:41 
AnswerRe: How to maximize child windows Pin
Joel Lucsy19-Aug-02 3:55
Joel Lucsy19-Aug-02 3:55 
GeneralRe: How to maximize child windows Pin
Mel Stober19-Aug-02 11:21
Mel Stober19-Aug-02 11:21 
QuestionHow to paint all dialog controls to other DC? Pin
17-Aug-02 15:34
suss17-Aug-02 15:34 
AnswerRe: How to paint all dialog controls to other DC? Pin
Shog917-Aug-02 22:26
sitebuilderShog917-Aug-02 22:26 
GeneralRemove Scrollbar from ListCtrl Pin
Pavel Sokolov17-Aug-02 15:28
Pavel Sokolov17-Aug-02 15:28 
QuestionHow to create an icon at run time? Pin
Hiusing17-Aug-02 15:18
Hiusing17-Aug-02 15:18 
AnswerRe: How to create an icon at run time? Pin
Mike Nordell17-Aug-02 23:16
Mike Nordell17-Aug-02 23:16 
Generalsetcheck for extended style list control Pin
nss17-Aug-02 13:59
nss17-Aug-02 13:59 
GeneralRe: setcheck for extended style list control Pin
Joel Lucsy19-Aug-02 3:59
Joel Lucsy19-Aug-02 3:59 
GeneralSTL string class and MFC CString Pin
monrobot1317-Aug-02 12:26
monrobot1317-Aug-02 12:26 
GeneralRe: STL string class and MFC CString Pin
Michael Dunn17-Aug-02 12:56
sitebuilderMichael Dunn17-Aug-02 12:56 
GeneralRe: STL string class and MFC CString Pin
monrobot1317-Aug-02 14:46
monrobot1317-Aug-02 14:46 
GeneralSystem Programming in visual C++ Pin
Amir-ul-Amin17-Aug-02 12:24
Amir-ul-Amin17-Aug-02 12:24 
GeneralRe: System Programming in visual C++ Pin
PJ Arends17-Aug-02 13:02
professionalPJ Arends17-Aug-02 13:02 
GeneralEthernet card and setting promiscuous mode Pin
jparsons17-Aug-02 11:36
jparsons17-Aug-02 11:36 
GeneralRe: Ethernet card and setting promiscuous mode Pin
JohnnyG17-Aug-02 16:13
JohnnyG17-Aug-02 16:13 
GeneralRe: Ethernet card and setting promiscuous mode Pin
jparsons18-Aug-02 16:47
jparsons18-Aug-02 16:47 
GeneralRe: Ethernet card and setting promiscuous mode Pin
Amir-ul-Amin2-May-05 22:01
Amir-ul-Amin2-May-05 22:01 
GeneralCEdit question Pin
Bert Tuyt17-Aug-02 11:23
Bert Tuyt17-Aug-02 11:23 

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.