Okay, maybe this is not the usual usage
@david_nash When I use CTab to attach an existing tab OnAttach->SelectPage while get a error // Selects the tab and the view page. inline void CTab::SelectPage(int page) { if ((page >= 0) && (page < GetItemCount())) { if (page != GetCurSel()) SetCurSel(page); ShowActiveView(m_allTabPageInfo[static_cast<size_t>(page)].pView); //here error } } Because m_allTabPageInfo is empty but the value returned by ItemCount is greater than 0 so get out of range error How can I do?
Thanks, David. It helped me a lot
@david_nash Because I want to create a window according to the size of the parent window in the PreCreate function, how can I do this
First of all, this is a very good library But I still encounter some problems in the process of using it Cwnd::PreCreate I think we should get the parent window handle here So I added a line of code before that cs.hwndParent = parent;//add // Allow the CREATESTRUCT parameters to be modified. PreCreate(cs); CImageList::Read Assert here is not necessary inline void CImageList::Read(LPSTREAM pStream) { assert(m_pData->images);//It should be removed here HIMAGELIST images = ImageList_Read(pStream); if...
I think it's good enough Thank you for your time to solve my problem
After I manually modified the error I mentioned above, the script has been able to run normally
Constants after the keyword "or" cannot be exported correctly