Yes all the dialogs are the same size. I mean approximately, Its hard to get them exactly the same size with the resource editor
Main Topics
Browse All TopicsHello I have a Cpropertysheet which I create as follows in my Dialog's OnInitDialog handler
m_dlgPropSheet.Create(this
Before doing this I add pages as follows
m_dlgPropSheet.AddPage(&m_
m_dlgPropSheet.AddPage(&m_
m_dlgPropSheet.AddPage(&m_
m_dlgPropSheet.AddPage(&m_
m_dlgPropSheet.AddPage(&m_
The pages don't fit accross the width of the property sheet so they are stacked. Unfortunately Though the pages are being clipped.
This is how the tabs should look
(Page 4)(Page 5)
(Page 1)(Page 2)(Page 3)
_____________________
Bottom of property sheet
But when the dialog loads up the tabs of pages 1,2 and 3 are not drawn. Then when I click one of the tabs all five of them are drawn but the bottom of the tabs are clipped (Note this is not a problem when the tabs are not stacked i.e on a single line).
Note the complete size of the property sheet is the size of the largest page. It needs to be bigger than this though to show the page tabs stacked on top and without clipping the bottom of the pages.
Note the pages are dialogs I created in the resource editor who's classes are derived from CPropertyPage.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I'm using visual studio 2003 and when I resize the dialog all it says in the status bar is "Ready" No units unfortunately, there is however rulers at the top and side of the dialog but they don't display any units which makes it difficult to size the dialogs.
Anyway I have approximately set all of them to 75 vertically (The controls fit snuggly in this space).
Can you tell me though what size they should be. Should I account space at the top or bottom for the tabs that the propertysheet draws ontop of the dialogs? For eg do I have to account for the tab space at the top and then add my controls at the bottom of the dialog:
_________________________
(Leave space for tab headers)
My Controls Here
__________________________
End of dialog
So you think the reason the property sheet doesn't paint/clips the tab headings for the bottom row of stacked tabs is because the dialogs are incorrect size. Do they have to be exactly the same width and height?
OK GO TO YOUR PROJECT FOLDER.
OPEN THE FILE NAMED
Project Name.Rc in NOTEPAD.
You will see the Dilaog Box
IDD_DIALOGONE DIALOG DISCARDABLE 0, 0, 341, 199
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "&Chicago",IDC_CK_CHICAGO,
WS_TABSTOP,16,46,54,10
CONTROL "&Boston",IDC_CK_BOSTON,"B
WS_TABSTOP,16,75,54,10
CONTROL "&Washington",IDC_CK_WASHI
WS_TABSTOP,16,102,54,10
LTEXT "Limit One",IDC_STATIC,129,18,30,
LTEXT "Limit Two",IDC_STATIC,247,18,31,
EDITTEXT IDC_CHICAGO_LIMITONE,128,4
EDITTEXT IDC_CHICAGO_LIMITTWO,240,4
EDITTEXT IDC_BOSTON_LIMITONE,128,71
EDITTEXT IDC_BOSTON_LIMITTWO,240,71
EDITTEXT IDC_WASHINGTON_LIMITONE,12
EDITTEXT IDC_WASHINGTON_LIMITTWO,24
END
the 0,0 repreents the dialog box default position and the dialog box dimension is 341, 199
Similarly you can CHANGE the size of any other control you want.
Save the YourProjectName.rc file
When you will now go to the Visual studio it will ask you that the file has been modified outside. Say yes to the chnages and complie gain.
Now you can make the size of the dialog boxes exactly same.
Thne compile again.
It should work.
iCe kOOl
==========================
If "iCe kOOl" was the answer
then the question must have been really stupid. :-)
==========================
I think it might be with the window styles assigned to the PropertySheet and the PropertyPage. As far as I know all windows get clipped by the parent (ie the CPropertySheet) unless they are WS_POPUP windows
but how to I set these styles for the CPropertySheet CPropertyPages? And what exact styles are required by each?
These are the styles I am setting for the CPropertySheet at the moment
m_dlgPropSheet.Create(this
m_dlgPropSheet.ModifyStyle
m_dlgPropSheet.ModifyStyle
Regards
The best way now is to build from the scratch again.
I mean you might have made backups in the projects.
Start from the one that is working and see if it works or not.
here are some links which might be useful
http://www.codeguru.com/pr
http://www.codeguru.com/pr
Good Luck !
Business Accounts
Answer for Membership
by: roshmonPosted on 2004-01-27 at 21:14:14ID: 10215884
Is all pages r same in size?
if not, plz make all dialogs to same size
Rosh :)