Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

doc/view & Parent frame question

Status
Not open for further replies.

coredump

Technical User
Jul 9, 2001
7
US
Greetings:

I'm relatively new to VC++ (and completely new to the MFC).
I used app wizard to create a SDI program with doc/view
architecture. The view window class is inherited from
CFormView (the one that uses a dialog box resource).

I have several fairly simple (at least in VB) questions about the properties of the app.

1) Is there any way to make the child window blend in with
the frame window so it looks like one big form?

2) Can I create several new dialog box resources and treat them like the view window, allowing the user to cycle through them?

3) I'm having difficulty with size issues, for instance
the parent window doesn't maximize when I put a cs.WS_MAXIMIZE in the PreCreateWindow() function.
Also, is there any way to deal with the resizing of controls
and forms when the user changes screen resolutions?

4) (perhaps most importantly) what references (web or printed) would you recommend for a wannabe windows programmer of my caliber? I'm familiar with C++ concepts and have been doing UNIX/DOS stuff for quite some time. I learned a little VB, but haven't done much serious programming with it. I've looked a bit at Using Visual C++ 6 (Author Kate Gregory, published by Que). I thought it was a very mediocre book. Slow, and rather incomplete. Also, where do they hide all the open source, sample type programs on the net? (i.e. where' planet-source-code.com for VC++)?

Thank you in advance for your time!


 
1. I think is possible, but I cannot imagine how for the moment.

2. Ususally not. But I think is possible if you make the dialogs modeless(that means you call them with CreateWindow instead of DoModal and destroy them with DestroyWindow)

3. To maximize your parent window treat the event ActivateFrame and put in the line:
nCmdShow = SW_MAXIMIZE;
{I know that it does not work with PreCreateWindow, donou why}

4. I had learned VC++ from a tutorial from HTMLs which explained to me what means every line generated by all wizards and how to make hello word projects of all types. Now I don't remember its name but it wasn't somethink like learn ... in x days" :)). I think you need something like that.

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Haven't got the energy to tackle the first 3 points, but on point 4, I have an excellent book on the subject.

I came from character-based C for Unix programs straight into Visual C++ 6.0 & hadn't got a clue (still haven't!!)

It's called 'Visual C++ 6.0 Bible' by Richard C. Leinecker & Tom Archer

ISBN 0-7645-3228-6

Try www.idgbooks.com Spencer Window (not a joke name)
spencer.window@eastmidlandcomputers.ltd.uk
 
Thanks for the info, its been quite helpful.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top