I down a demo project from codeproject, but failed to pass compilation.
Here is some code:
<code>
int retId = TrackPopupMenu( hPopup , TPM_LEFTALIGN | TPM_LEFTBUTTON |
TPM_RETURNCMD |TPM_HORNEGANIMATION
, pt.x , pt.y , 0 , this -> m_hWnd , NULL );
... ...
NOTIFYICONDATA tnd;
switch (message)
{
case NIM_ADD:
case NIM_MODIFY:
tnd.dwState = NIS_HIDDEN; //here compile failed !
tnd.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
break;
case NIM_DELETE:
tnd.uFlags = 0;
break;
}
</code>
And some error message:
MFConfigurationDlg.cpp
E:\vcProject\exexise\Desktop_Switcher_demo\MFConfigurationDlg.cpp(362) :
error C2065: 'TPM_HORNEGANIMATION' : undeclared identifier
MFDeskTopHelper.cpp
E:\vcProject\exexise\Desktop_Switcher_demo\MFDeskTopHelper.cpp(664) : error
C2039: 'dwState' : is not a member of '_NOTIFYICONDATAA'
d:\program files\microsoft visual
studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'
E:\vcProject\exexise\Desktop_Switcher_demo\MFDeskTopHelper.cpp(664) : error
C2065: 'NIS_HIDDEN' : undeclared identifier
My developing enviroment: win2k+sp4 + VC6+sp5 + IE6 (install before VC6).
Is that my SDK need updated ?
Your Sincerely!
youhua wang