The code above seems really complicated and I could not get it to compile. Does anyone know an easy way to create a modeless property sheet? My goal is just to have a simple Modeless property sheet that has NO Ok, Apply , Cancel and help buttons. I managed to get rid of the buttons on a Modal Property sheet but the empty space still appears underneath the tabs. Please help. Thanks,
ReplyThe code above seems really complicated and I could not get it to compile. Does anyone know an easy way to create a modeless property sheet? My goal is just to have a simple Modeless property sheet that has NO Ok, Apply , Cancel and help buttons. I managed to get rid of the buttons on a Modal Property sheet but the empty space still appears underneath the tabs. Please help. Thanks,
ReplyOriginally posted by: fting
CConcreteLxlPropertySheet m_ConcreteLxlPropertySheet(""); CConcreteLxlPage1 page1; CConcreteLxlPage2 page2; m_ConcreteLxlPropertySheet.AddPage(&page1); m_ConcreteLxlPropertySheet.AddPage(&page2); m_ConcreteLxlPropertySheet.DoModal(); m_ConcreteLxlPropertySheet.MoveWindow(myRect.left+myRect.Width()/9,myRect.top+32,500,400,true);
However, it seems that this doesn't work ,besides, when i close the propertysheet dlg, I am warned-"debug assertion failed".
I don't know how to deal with it.
Could someone give me some help??
Thank you very much!!!!!
Originally posted by: duckbill
You can find an article which is explaining the method in Microsoft Knowledge Base.
Go to http://msdn.microsoft.com/, and
search with keyword Q146916 in Knowledge Base Category.
Good luck.
ReplyOriginally posted by: Hariprasad Rao
Thaning you
H.V. Rao
How do I destroy the modeless dialog box? Whether DestroyWindow() can be used here?
Originally posted by: Seorak, Lee
Please help me. I can't close this dialog.
I used to Create Function
Originally posted by: bhaskar
Assert failure in CWnd::DestroyWindow
#ifdef _DEBUG
ASSERT(m_hWnd == hWndOrig);
which is in
CWnd::FilterToolTipMessage()
pToolTip->DestroyWindow();
delete pToolTip;
which is in
void PASCAL CWnd::_FilterToolTipMessage(MSG* pMsg, CWnd* pWnd)
{
pWnd->FilterToolTipMessage(pMsg);
}
which is in
BOOL CWnd::PreTranslateMessage(MSG* pMsg)
{
// handle tooltip messages (some messages cancel, some may cause it to popup)
AFX_MODULE_STATE* pModuleState = _AFX_CMDTARGET_GETSTATE();
if (pModuleState->m_pfnFilterToolTipMessage != NULL)
(*pModuleState->m_pfnFilterToolTipMessage)(pMsg, this);
// no default processing
return FALSE;
}
etc..
Can you spot the mistake???
Bhaskar
ReplyOriginally posted by: deshays
2 modeless PropertySheet : don't close the first!!!
Where's the problem?
Originally posted by: Edmond Chui
By using the same trick as in the example, I turned a modal property sheet to modeless. Everything worked fine until I tried to kill the parent window before killing the property sheet. I got an Unhanled exception error (Access Violation) when the if(!ContinueModal()) line is called inside RunModalLoop(), which in turn is called by DoModeless(). Any suggestion on what's wrong?
Also, how to bring the modeless property sheet behind the parent when it yields the input focus?
Thanks,
Edmond
Originally posted by: Terry Chan
I try to make the HELP button and the F1 on my modeless property sheet work, but they have been acting so weird . For instance, if F1 is clicked, then F1 is not active, but if I lick the cursor somewhere in side the page, F1 works. It seems to me that after HeLP button is released, the focus on this sheet is gone, Please give me some idea how to solve this problem
Thanks
Terry
Reply