滑鼠內容頁面新增頁面後,要如何排列順序? RRS feed

  • Question

  • Sorry everybody, i have not notice this an Enalish forum.

    I have insert page program. I want to insert page in mouse property.

    I allready add page in mouse property, but it can't not change page list.

    I want to add page in first list item.

    example code:

    STDMETHODIMP InsertPropSheet::XPropSheet::AddPages(LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam)
          METHOD_PROLOGUE(InsertPropSheet, PropSheet);

         PROPSHEETPAGE ppsp;

         pThis->m_pPageMain = new PropPageMain();
         pThis->m_pPageMain->m_psp.dwFlags |= PSP_USEHICON | PSP_USEREFPARENT;
         pThis->m_pPageMain->m_psp.hIcon = AfxGetApp()->LoadIcon(IDI_LOGO);
         memcpy(&ppsp, &pThis->m_pPageMain->m_psp, sizeof(pThis->m_pPageMain->m_psp));
         pThis->m_hPageMain = CreatePropertySheetPage((PROPSHEETPAGE*)&ppsp);
             CanDeletePropPageMain = TRUE;

             if(!lpfnAddPage(pThis->m_hPageMain, lParam))
                delete pThis->m_pPageMain;
                pThis->m_hPageMain = NULL;
                pThis->m_pPageMain = NULL;
     return NOERROR;




    • Edited by Roger77720 Tuesday, February 15, 2011 7:30 AM
    • Moved by Pavel Celba Monday, June 18, 2012 7:33 AM Maybe too late but I hope in correct forum now (From:Visual FoxPro General)
    Monday, February 14, 2011 9:51 AM

All replies

  • 显示您的代码,我们会有所帮助。
    Monday, February 14, 2011 11:18 AM
  • 显示代码,并可能用英文写
    Systems Analyst
    Monday, February 14, 2011 5:44 PM
  •     It looks like question is in chinesse. The two answers also in chinesse. Can someone translate ?




    Monday, February 14, 2011 6:32 PM
  • Hello Roger777,

    Thanks for your post.

    This is an English forum. Could you please translate this problem into English and provide some code? If so, you may get more better and quicker support. Thanks for your understanding.

    If you have any concerns, please feel free to follow up.

    Have a nice day.

    Best regards

    Liliane Teng [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, February 15, 2011 2:37 AM
  • The question was in Chinese originally and we did not notice its editation to English because such action is not monitored and reported to contributors...  So the question raised now as a part of "general cleanup".

    In addition to that I may recognize this problem is not related to Visual FoxPro but C++ so I am moving the question to appropriate forum.

    Monday, June 18, 2012 7:31 AM