p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2008 by Ivor Horton; ISBN: 9780470225905

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 2nd, 2009, 02:00 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Adding Controls to the Main Frame Client Area

My application will need 3 views in the client area of the main frame. A thin vertical view (view 1) on the left side of the client area. A thin horizontal view (view 2) on the bottom of the client area. And a main view (view 3) in the remainder of the client area. View 1 contains something like "line labels" for view 3. View3 is the height of the client area minus the height of view 2 and is as wide as the client area minus the width of view 1. Therefore the bottom left corner of the main frame client area has no view covering it. View 1 height is the same as view 3 height, and view 2 is only as wide as view 3 width.

I need to have horizontal and vertical scroll bars to scroll the views. These scroll bars need to be independent of the views and child windows of the main frame window. The vertical scroll bar should only be as high as view 3 height and the horizontal scroll bar should only be as wide as view 2. when the vertical scroll bar is scrolled, view 1 and 3 scroll vertically and stay synchronized. When the horizontal scroll bar scrolls, view 2 and 3 horizontally and stay synchronized.

Ivor's book goes over how to add controls to dialog windows, but nothing about adding anything to the main frame window.

Also, when adding things to dialog boxes, you can create an IDC_ id name in the properties window of the object or control and I guess the visual studio IDE assignes a value to it. When I tried to define a CScrollBar class as a member of CMainFrame and then m_HScrollBar.Create the scrollbar, I have to give it an IDC_. Where do I get an IDC_ to use and then message map it?

This is an SDI application using MFC native. It will never run on anything but windows, so it does not need the portability and I am converting the application from VB6. When I tried VB.NET, running with MSIL is frustratingly slow.

This book also need to address mixed native and .NET applications. Areas of the program that need the speed need to be native, but most dialog boxes could use .NET.

Thanks for any help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Client-Side Features to Server Controls barkerl ASP.NET 2.0 Professional 2 February 22nd, 2009 01:44 PM
change Client Area of Form angelboy C# 2005 1 April 24th, 2008 08:36 AM
Use cookie to set main frame npepin Javascript 0 October 18th, 2004 03:01 PM
adding a to a variable from a text area darkhalf ASP Forms 1 March 17th, 2004 01:40 PM
Target for main frame? Snib Javascript How-To 6 December 13th, 2003 04:40 PM



All times are GMT -4. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc