Problem: Does not work with a RichEdit control !!!!
Posted by Legacy
on 10/26/2002 12:00am
Originally posted by:
i made a dialog based application with the property sheet model you have presented,
and if i add a RichEdit control to ANY of the pages, then the page simply disappears
when i click on its tab! (instead of being displayed, it disappears, the page AND the tab).
i have also tried this with your own sample project, and i got the same results.
personally, i couldn't figure out how to fix this. i *think* the problem
is with the UpdateData function, but i'm not sure.
I've tried your code and it works fine. However, when I try to use my own defined property sheet the compiler says that no default constructor is available for m_internal_sheet. Do you or anybody else knows how to solve this problem?
I try to add propertysheet inside propertysheet to a dilog which is in a CFormView Class.
The first time the dialog is on every thing is fine , but the second time the system fail and it because of this function
HWND CDataExchange::PrepareCtrl(int nIDC)
ASSERT(nIDC != 0);
ASSERT(nIDC != -1); // not allowed
if (hWndCtrl == NULL)
TRACE1("Error: no data exchange control with ID 0x%04X.\n", nIDC);
ASSERT(FALSE); // here is the problem
m_hWndLastControl = hWndCtrl;
m_bEditLastControl = FALSE; // not an edit item by default
ASSERT(hWndCtrl != NULL); // never return NULL handle
what can be done to avoid this?
Was having trouble setting the focus to a control inside
the inside property sheet. My outside property sheet is in wizard mode. I've tried setting the focus to the control and then returning false in my OnInit() function in the property page code. Using VC6.