正在阅读:不用Hook也能实现方面快捷的换肤功能不用Hook也能实现方面快捷的换肤功能

2004-02-14 09:34 出处:PConline 作者:checkyvc6/CSDN 责任编辑:linjixiong

    }
   }
   else if( ( dwStyle & SS_TYPEMASK) == BS_GROUPBOX)
   {
    if(CWnd::FromHandlePermanent(hWnd) == NULL)
    {
     CExGroupBox *pGrp=new CExGroupBox();
     if(pGrp == NULL)
      return FALSE;
     pSkin->m_grpList.AddTail(pGrp);
     pGrp->SubclassWindow(hWnd);
    }
    
   }
  }

  //static子类化

   if( (_tcsicmp(szBuf,_T("Static")) == 0)
   && (GetWindowLong(hWnd,GWL_STYLE) & SS_ETCHEDHORZ) ==

  SS_ETCHEDHORZ)
  { 
   if(CWnd::FromHandlePermanent(hWnd) == NULL)
   {
    CLineStatic * pLine=new CLineStatic();
    if(pLine == NULL)
     return FALSE;
    pSkin->m_lineList.AddTail(pLine);
    pLine->SubclassWindow(hWnd);
   }   
    }

    //ComboBox子类化

  if( _tcsicmp(szBuf,_T("ComboBox")) == 0)
  {
   if(CWnd::FromHandlePermanent(hWnd) == NULL)

键盘也能翻页,试试“← →”键

相关文章

关注我们

最新资讯离线随时看 聊天吐槽赢奖品