Prev: Property Management Plymouth
Next: Thread Pool Class?
From: Ron H on 22 Jan 2010 10:47 I am using the new and improved CMFCStatusBar class and have inserted some clever little icons... BUT the statusbar doesn't resize to center the icons vertically until I move the mainframe by clicking on it and dragging it. How can I force the statusbar to resize at runtime so the icons fit. I've tried Invalidate(true) in mainframe & in the active view but it has no effect. Ron H.
From: Tom Serface on 22 Jan 2010 13:38 Have you tried calling RecalcLayout() for the mainframe directly? http://msdn.microsoft.com/en-us/library/1dyba2bb(VS.80).aspx Tom "Ron H" <rnharsh(a)nospam.net> wrote in message news:oMj6n.594$BV.541(a)newsfe07.iad... > I am using the new and improved CMFCStatusBar class and have inserted some > clever little icons... BUT the statusbar doesn't resize to center the > icons vertically until I move the mainframe by clicking on it and dragging > it. How can I force the statusbar to resize at runtime so the icons fit. > I've tried Invalidate(true) in mainframe & in the active view but it has > no effect. > > Ron H. >
From: Ron H on 22 Jan 2010 15:19 Works like a top Tom, Thanks -- Ron H -- This outgoing email was scanned by Norton 360 and found to be virus free! "Tom Serface" <tom(a)camaswood.com> wrote in message news:%23YLDYI5mKHA.6084(a)TK2MSFTNGP02.phx.gbl... > Have you tried calling RecalcLayout() for the mainframe directly? > > http://msdn.microsoft.com/en-us/library/1dyba2bb(VS.80).aspx > > Tom > > "Ron H" <rnharsh(a)nospam.net> wrote in message > news:oMj6n.594$BV.541(a)newsfe07.iad... >> I am using the new and improved CMFCStatusBar class and have inserted >> some clever little icons... BUT the statusbar doesn't resize to center >> the icons vertically until I move the mainframe by clicking on it and >> dragging it. How can I force the statusbar to resize at runtime so the >> icons fit. I've tried Invalidate(true) in mainframe & in the active view >> but it has no effect. >> >> Ron H. >>
From: Tom Serface on 23 Jan 2010 02:33 I'm not sure why that doesn't happen automatically when in the new MFC code, but that's how it's been for the status, toolbar, and other frame components for as long as I can remember. Glad it worked for you. Tom "Ron H" <rnharsh(a)nospam.net> wrote in message news:3Ln6n.6885$4p5.1662(a)newsfe22.iad... > Works like a top Tom, Thanks > -- > > Ron H > -- > This outgoing email was scanned by > Norton 360 and found to be virus free! > "Tom Serface" <tom(a)camaswood.com> wrote in message > news:%23YLDYI5mKHA.6084(a)TK2MSFTNGP02.phx.gbl... >> Have you tried calling RecalcLayout() for the mainframe directly? >> >> http://msdn.microsoft.com/en-us/library/1dyba2bb(VS.80).aspx >> >> Tom >> >> "Ron H" <rnharsh(a)nospam.net> wrote in message >> news:oMj6n.594$BV.541(a)newsfe07.iad... >>> I am using the new and improved CMFCStatusBar class and have inserted >>> some clever little icons... BUT the statusbar doesn't resize to center >>> the icons vertically until I move the mainframe by clicking on it and >>> dragging it. How can I force the statusbar to resize at runtime so the >>> icons fit. I've tried Invalidate(true) in mainframe & in the active view >>> but it has no effect. >>> >>> Ron H. >>> > >
|
Pages: 1 Prev: Property Management Plymouth Next: Thread Pool Class? |