我的对话框工程包含了#include "BtnST.h"后
为什么在BtnST.h中会出现error C2059: syntax error : 'constant'
这样的问题?我在其他的工程中使用#include "BtnST.h"又没有问题?????

解决方案 »

  1.   

    /*出错*/ void PrepareImageRect(BOOL bHasTitle, RECT* rpItem, CRect* rpTitle, BOOL bIsPressed, DWORD dwWidth, DWORD dwHeight, CRect* rpImage);
    HBITMAP CreateBitmapMask(HBITMAP hSourceBitmap, DWORD dwWidth, DWORD dwHeight, COLORREF crTransColor);
    /*出错*/ virtual void DrawTheIcon(CDC* pDC, BOOL bHasTitle, RECT* rpItem, CRect* rpCaption, BOOL bIsPressed, BOOL bIsDisabled);
    /*出错*/ virtual void DrawTheBitmap(CDC* pDC, BOOL bHasTitle, RECT* rpItem, CRect* rpCaption, BOOL bIsPressed, BOOL bIsDisabled);
    /*出错*/ virtual void DrawTheText(CDC* pDC, LPCTSTR lpszText, RECT* rpItem, CRect* rpCaption, BOOL bIsPressed, BOOL bIsDisabled);//共4句
    我把#include "BtnST.h"放在其它头文件的前面会提示20个错误
    我把#include "BtnST.h"放在其它头文件的后面会提示36个错误
      

  2.   

    看不出。看看这个:http://topic.csdn.net/t/20050613/13/4078580.html
      

  3.   

    CButtonST类应该是没有错误的了。因为我在其他的工程中用也没出错
    想必应该是我的工程的问题,我现在换了一个Button的控件,没问题了。