Re: Frame Displays?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Relvinian (smpres_at_hotmail.com)
Date: 11/22/04


Date: Sun, 21 Nov 2004 20:00:27 -0700

Mark Randall wrote:
> Hello,
>
> I am trying to find a solution in MFC to impliment 'frames' on a dialog, as
> I have one dialog that will need to contain several major sets of edits,
> checkboxes etc and I need to be able to show just 1 of them at a time,
> hiding all others.
>
> It would be most helpful if someone knew of a Dialog-Designer based method
> of doing this, as it would help me see the exact design of it previously,
> and perhaps incorporate them with their own classes, then place them onto an
> owner dialog.
>
> Any information regarding if this is possible, and now, would be
> appreciated.
>
> - MR
>
>
Mark,

Are you talking about "frames" as in the Borland C++ Builder's TFrame
type? If so, there is no equivalent in Visual Studio. But there is an
alternative.

Every type of Frame you want to create, create another Dialog with those
controls -- setting the dialog type to Style:Child and Border:None.

Then on your main dialog, put a static control as the dimensions you
want for your frames to show in. Then just create a class instance of
that dialog type and position it over the "static" coords.

Relvinian



Relevant Pages

  • Frame Displays?
    ... I am trying to find a solution in MFC to impliment 'frames' on a dialog, ... I have one dialog that will need to contain several major sets of edits, ...
    (microsoft.public.vc.mfc)
  • Re: MFC of ether_input() changes
    ... Bruce M Simpson wrote: ... Does anyone want to see these changes MFCed, or otherwise object to such an MFC? ... Drop frames immediately if the interface is not marked IFF_UP. ...
    (freebsd-net)
  • MoveWindow does not move window on Vista.
    ... I am experiencing a strange problem on Vista. ... I have a bunch of windows, frames with splitters with childframes etc. ... On one level there is a MFC CFrameWnd hosting a MFC CDialog as a ... On XP the dialog gets it's WM_SIZE and the GUI looks like it should. ...
    (microsoft.public.win32.programmer.ui)
  • Re: MFC of ether_input() changes
    ... Drop frames immediately if the interface is not marked IFF_UP. ... may reenter itself on the same call graph with the same mbuf which ... Deal with the special case for CARP in a sane way. ... If I hear 'yeses' I will try to MFC this as time permits. ...
    (freebsd-net)
  • MFC of ether_input() changes
    ... Does anyone want to see these changes MFCed, or otherwise object to such an MFC? ... Drop frames immediately if the interface is not marked IFF_UP. ... may reenter itself on the same call graph with the same mbuf which ... Deal with the special case for CARP in a sane way. ...
    (freebsd-net)