You can add the window minimize and maximize buttons by adding "WS_MAXIMIZEBOX|WS_MINIMIZEBOX" to ModifyStyle called at the end of CResizablePropertySheet::OnInitDialog().
ReplyOriginally posted by: Ninad Shah
/*Extends CResizablePropertyPage */
sheet->AddPage(page);
I am calling this function several times as and when user clicks on a row in table. User may not have closed the earlier opened property sheet while he is clicking on another row.
The property page comes up properly in first click, but next time when user clicks on a row to open property sheet, the whole application crashes.
Is thet any clue to this problem.
I highly appreciate any help on this.
Thanks in advance.
Hello There,
I am using CResizablePropertySheet in my program by extending that class as follows:
void CMyClass::SHowProperty()
{
/* Extends CResizablePropertySheet */
CMyPropertySheet *sheet = new CMyPropertySheet(this);
CMyPage *page = new CMyPage(this);
sheet->Create(this);
}
Can you give me some advice about thiss problem
ReplyOriginally posted by: Mike Lischke
I'm perplex that nobody every realized that the DeferWindowPos calls in the Resize method currently change the z-order of the windows (or didn't they just tell us?). This has ugly side effects like controls on a group box suddenly disappear because they are now behind the box.
The solution for this problem is pretty simple. Replace the last value (0) in the DeferWindowPos calls by SWP_NOZORDER and bob's your uncle.
Mike
--
www.delphi-gems.com
www.lischke-online.de
www.delphi-unicode.net
How do you go by doing it? Can you show us by example on how to "Replace the last value (0) in the DeferWindowPos calls by SWP_NOZORDER" Thanks.
ReplyOriginally posted by: rm_pkt
Thanks a lot Magnus.
It is very useful to me as I need Resizeable Property sheet.
And thanks to KL (2000/05/26). Its really good idea for
modeless in standard mode
Reply
Originally posted by: Ian
Magnus,
Great code, thank you. I've just worked into my project and your work has shaved days of my development schedule.
Just wondering why the Resize(CFormView*) method isn't implemented on CDlgItemResizer?
I only discovered the omission when I decided to reuse your resizer class in a form view. It seems to work it we use the CWnd* method instead, but I was wondering what the specialisation was intended to do?
Anyone got any ideas?
Ian
ReplyOriginally posted by: Alexander Vogt
I tried to use the classes with a property sheet that I create at runtime. Everything works fine, but after resizing, the content of the active property page is gone. One has to change onto another tab first, and then go back again, to see the list-control it contains. I tried to insert several kinds of redraws, but it didn't work.
I'm really not an expert at MFC , and the solution may e simple. Could anyone help?
thanks
Alex
Originally posted by: Simon
Hi,
anybody knows how to remove flickering on resizing of the property sheet ?
Originally posted by: Andreas Lander
Resizing the Height of the Propertysheet is no problem, but i cant resize the X-Axis...
ReplyOriginally posted by: KL
1. The initial property page appears blank until you switch
2. When resizing a page the controls disappear from the
As Paul Hurley pointed out, 'm_rcClient' and 'm_rcPage' are
To get around this problem I added the flag
if(!m_bInitialized) return;
Now everything seems to be working just fine.
These issues appear when running the property sheet as
modeless in standard mode. You can recreate them in the
demo project by making CResizablePropertySheet modeless:
to a different page then switch back.
page.
used by GetPageRect() before they are initialized in
OnInitDialog(). Yet clearing them in the constructor
doesn't allow GetPageRect() to get the right values. Thus
the controls are drawn somewhere off the property page.
'm_bInitialized' to CResizablePropertySheet. I set it
to 'false' in the constructors and to 'true' at the end of
OnInitDialog() before returning. Then I added this line to
OnSize() after 'InvalidateRect(m_rcGripper, TRUE);':
Originally posted by: Wayne Irons
BOOL CFundSheet::OnInitDialog()
TC_ITEM tcItem;
Then after I resize, the tab control vanishes. If I change the ResizeablePropertySheet::OnSize handler a bit, I can make it reappear, kind of. Is there a good fix for this? Thanks.
The resizable property sheet is GREAT. I do have one problem. When I resize my property sheet, my tab control disappears. I am using an image tab control which I create thus:
{
BOOL bResult = CResizablePropertySheet::OnInitDialog();
m_ImageTab.Create( IDB_BITMAP2, 16, 1, RGB(255,255,255) );
CTabCtrl *pTab = GetTabControl();
pTab->SetImageList( &m_ImageTab );
tcItem.mask = TCIF_IMAGE;
for( int i = 0; i < 7; i++ )
{
tcItem.iImage = 0;
pTab->SetItem( i, &tcItem );
}
return bResult;
}