My winuser.h has FLASHWINFO defined, and it is included.
If it wasn't included I would have more errors than just FLASHWINFO.
Compiler errors:
g++.exe -c flashtest.cpp -o flashtest.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include"
flashtest.cpp: In function `LRESULT WindowProcedure(HWND__*, UINT, WPARAM, LPARAM)':
flashtest.cpp:90: error: `FLASHWINFO' undeclared (first use this function)
flashtest.cpp:90: error: (Each undeclared identifier is reported only once for each function it appears in.)
flashtest.cpp:90: error: expected `;' before "finfo"
flashtest.cpp:91: error: `finfo' undeclared (first use this function)
flashtest.cpp:92: error: invalid use of `this' in non-member function
flashtest.cpp:95: error: `FLASHW_ALL' undeclared (first use this function)
flashtest.cpp:95: error: `FLASHW_TIMERNOFG' undeclared (first use this function)
flashtest.cpp:96: error: `FlashWindowEx' undeclared (first use this function)
make.exe: *** [flashtest.o] Error 1
case IDBUTTON:{
Sleep(1000);
MessageBox(hwnd, (LPCTSTR)"test!", (LPCTSTR)"test!", MB_OK|MB_ICONEXCLAMATION);
FLASHWINFO finfo;
finfo.cbSize = sizeof( FLASHWINFO );
finfo.hwnd = hwnd;
finfo.uCount = 20; // Flash 20 times
finfo.dwTimeout = 400; // Duration in milliseconds between flashes
finfo.dwFlags = FLASHW_ALL|FLASHW_TIMERNOFG; //Flash only taskbar button
FlashWindowEx( &finfo );
break;
}
case IDBUTTON:{
Sleep(1000);
MessageBox(hwnd, (LPCTSTR)"test!", (LPCTSTR)"test!", MB_OK|MB_ICONEXCLAMATION);
FLASHWINFO finfo;
finfo.cbSize = sizeof( FLASHWINFO );
finfo.hwnd = hwnd;
finfo.uCount = 20; // Flash 20 times
finfo.dwTimeout = 400; // Duration in milliseconds between flashes
finfo.dwFlags = FLASHW_ALL|FLASHW_TIMERNOFG; //Flash only taskbar button
FlashWindowEx( &finfo );
break;
}
To copy to clipboard, switch view to plain text mode
Oh btw you guys should rly consider removing the line number from geshi filter, annoying...
But this error, look how ridiculous this is:
#include <winuser.h>
MOUSEMOVEPOINT mmp;
Bookmarks