Originally posted by: Stuart Ledwich
I have a setup my TabView in a CFormView as described and now the Print Preview hangs.
I have the most basic print setup and printing to printer works perfect.
Any ideas welcome.
Reply
Originally posted by: vik
When i use classwizaard and add a combo box control
to a pprerty page, my application crashes on the
OnInitDialog() of the propertypage class? Every other control works, but no thte ccombobox or ccomboxex. anyone else have this problem, any ideas?
Originally posted by: Douglas Esanbock
I have managed to create a sheet on top of a CFormView and to add pages to that sheet and add a sheet inside those pages and a page insided that sheet... and so on.
Has anyonelse done this? I cannot get the sheets to resize properly. It seems as if it's not painting correctly.
Thanks.
ReplyOriginally posted by: Kim Phan
Hi, How can I set the focus back on the property page so that the F1 can be activated? since if I tab the focus to any button ( HELL, OK, CANCEL) on the property sheet, the F1 is inactive ( which mean the HELP SCREEN can not be brought up by hitting F1)
Please give me some idea
Thanks
ReplyOriginally posted by: Kevin Cao
any body know how to make CPropertyPage Scrollable ?
I really need help.
Thanks
Kevin
unicred@vinet.com
Originally posted by: dominic
Hi Kevin Cao.
As for your problem, I can't contact you since you're on Eudora. Please left your e-mail behind and I'll
post it to you the source code.
Originally posted by: Yasushi Ozawa
Hello.
I have created a property sheet with two property pages
in a FormView.
The property pages have some editboxes, I want to edit strings in these editboxes from the menu of
MainFrame.
But the editing menu items are still disabled.
I think because it's not to recognize message handlers for them.( of course I write these handlers. I
guess the reason is that property sheet is not active view.)
When focusing on the form view, the menu is enabled.
When focusing on the property sheet, the menu is changed to disable.
How can I catch these editing command?
Thank you!
Yasushi Ozawa
E-mail: ozawa@air.linkclub.or.jp
Originally posted by: Wakan
Yes, but how can I link the fields of m_pSet
to the edit controls I've created in the
Pages of the CPropertySheet?
Thx
Originally posted by: Brian Butler
Here is what I did to get change the icon on
click.
The problem is if the control handles the
notify message, it do not get passed to you. Thus,
I modify the CGfxListCtrl to use ON_NOTIFY_REFLECT_EX;
which allows you to specify when the parent gets
the message, via returning TRUE or FALSE;
In my code I have a OnClick event that changes
the state of a particular boolean, which the
GetTextCallback (..), checks to determine the icon.
modify gfxlistctrl.cpp (line 285)
change to
ON_NOTIFY_REFLECT_EX(NM_CLICK, OnClick)
Modify GfxListCtrl::OnClick (line 1687); also change
header file.
void CGfxListCtrl::OnClick(NMHDR* pNMHDR, LRESULT* pResult)
to
BOOL CGfxListCtrl::OnClick(NMHDR* pNMHDR, LRESULT* pResult)
{
if (GetFocus() != this) SetFocus();
CPoint point;
GetCursorPos(&point);
ScreenToClient(&point);
int index, colnum;
if ((index = HitTestEx(point, &colnum)) != -1)
{
int cate = -1;
if (pCategoryManager != NULL)
{
cate = pCategoryManager->IsListItemACategory(GetItemData(index));
if (cate >= 0)
{
if (colnum == 0)
{
if (pCategoryManager->pCategory[cate].bExpanded)
{
pCategoryManager->RemoveCategoryItems(cate, index, this);
CRect rcAllLabels;
GetItemRect(index,rcAllLabels,LVIR_BOUNDS);
CRect rc;
GetClientRect(&rc);
if (rc.right > rcAllLabels.right)
{
rc.left = rcAllLabels.right;
rc.top = rcAllLabels.bottom;
InvalidateRect(rc, true);
}
}
else
{
pCategoryManager->FillCategoryItems(cate, index, this);
}
pCategoryManager->pCategory[cate].bExpanded = !(pCategoryManager->pCategory[cate].bExpanded);
CRect rcLittleBox;
GetSubItemRect(index, 0, rcLittleBox);
rcLittleBox.bottom ++;
rcLittleBox.right ++;
InvalidateRect(rcLittleBox, false);
if (dwFlag&fScrollBarAlways)
{
ShowScrollBar(SB_BOTH);
int iPageItem = GetCountPerPage();
int iItemCount = GetItemCount();
if (iItemCount < iPageItem) EnableScrollBar(SB_VERT,
ESB_DISABLE_BOTH);
else EnableScrollBar(SB_VERT, ESB_ENABLE_BOTH);
CRect rcAllLabels;
GetItemRect(0,rcAllLabels,LVIR_BOUNDS);
EnableScrollBar(SB_HORZ, rcAllLabels.Width() < m_cxClient
? ESB_DISABLE_BOTH : ESB_ENABLE_BOTH);
}
*pResult = 1;
return TRUE;
}
}
}
if (iSubItemFocus != colnum)
{
CRect src;
GetSubItemRect(index, iSubItemFocus, src);
InvalidateRect(src);
iSubItemFocus = colnum;
GetSubItemRect(index, iSubItemFocus, src);
InvalidateRect(src);
}
UINT flag = LVIS_FOCUSED;
if ((GetItemState(index, flag) & flag) == flag)
{
if (cate < 0)
{
int irealcol = GetColumnIndex(colnum);
*pResult = 1;
if (dwhEdit&(1 << irealcol))
{
EditSubLabel(index, colnum);
return TRUE;
}
else if (dwhCombo&(1 << irealcol))
{
ComboSubLabel(index, colnum);
return TRUE;
}
else if (dwhComboEx&(1 << irealcol))
{
ComboSubLabel(index, colnum, true);
return TRUE;
}
}
}
else
{
SetItemState(index, LVIS_SELECTED | LVIS_FOCUSED , LVIS_SELECTED | LVIS_FOCUSED);
}
}
*pResult = 1;
return FALSE; // Nothing was done.
}
Reply
Originally posted by: Rajkumar Chityal
I am having a problem in Viewing Print Preview when I use
Hello Asaf Levy,
property sheet inside a form view.I want to customize printing
of my Formview details so I need Print Preview. But I haven't
added any of my code by using default Print Preview it goes
into infinite loop. So please give me a solution to this problem.
Thanks,
Rajkumar.