我在DefWindowProc中截获IDOK,好像不行。
应该怎么实现?谢谢!

解决方案 »

  1.   

    应该可以的吧:
    CYourPropertySheet::DefWindowProc()中:
    if(message == WM_COMMAND)
    {
        if(LOWORD(wParam) == IDOK)
        {
            ......
        }
        ......
    }
      

  2.   

    你的主窗口和这个CPropertySheet是什么关系呢?
      

  3.   

    一般不在CPropertySheet中截获IDOK,而是在主程序中。
    例如:
    CSetupPropertySheet property("Setup",this,0);
    DWORD dwRet = property.DoModal();
    if(dwRet == IDOK)
    {
    }
      

  4.   

    在OnCmdMsg中截获
    if (nID == IDOK)
    {
     ....
    }
    我就是这么干的
      

  5.   

    faint,我为什么不行?!
    等我晚上再试试,如果可以,马上给分,
    先谢谢各位!