我调试了发现在执行语句
CWnd * pwnd = GetDlgItem(IDC_ST_DIAMOND_1);后
系统返回语句CWnd ::GetDlgItem returned的值为0x000000{CWnd hWnd=???},
即pwnd的值成了0x000000{CWnd hWnd=???}我不知道这个怎么去解决~~
我在MFC Classwizard -> Member Variables中填IDC_ST_DIAMOND_1的变量后系统跳出警告:
Please ensure that "DiamondDlg.h"contains the necessary #include directive(s) for using your class CDiamondStatic(from file "DiamondStatic.h").
我不知道还要包含什么文件了,我在DiamondDlg.h和DiamondDlg.cpp中都包含了DiamondStatic.h
我调试了发现在执行语句
CWnd * pwnd = GetDlgItem(IDC_ST_DIAMOND_1);后
系统返回语句CWnd ::GetDlgItem returned的值为0x000000{CWnd hWnd=???},
即pwnd的值成了0x000000{CWnd hWnd=???}我不知道这个怎么去解决~~
我在MFC Classwizard -> Member Variables中填IDC_ST_DIAMOND_1的变量后系统跳出警告:
Please ensure that "DiamondDlg.h"contains the necessary #include directive(s) for using your class CDiamondStatic(from file "DiamondStatic.h").
我不知道还要包含什么文件了,我在DiamondDlg.h和DiamondDlg.cpp中都包含了DiamondStatic.h