problem about tray icon
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi: 1)I add an icon(256 color) to the tray。It works well in winxp,but in win2k ,the icon doesn't show correctly(it becomes ugly),how to resolve this problem? 2)I handle the onmousewheel message by myself, but how could I know how many lines I should scroll in this message? Thanks Benben
-
Hi: 1)I add an icon(256 color) to the tray。It works well in winxp,but in win2k ,the icon doesn't show correctly(it becomes ugly),how to resolve this problem? 2)I handle the onmousewheel message by myself, but how could I know how many lines I should scroll in this message? Thanks Benben
- Did you also add a 16x16 version of the icon to the icon group? 2) Uhm... wasn't there a parameter in the OnMouseWheel function that tells you how many notches were scrolled? Multiply it with the UINT nLinesPerScroll after you called
SystemParameterInfo(SPI_GETWHEELSCROLLLINES, NULL, (LPVOID(&nLinesPerScroll)), NULL);
Wlx P.S. If the SystemParameterInfo doesn't work, I probably casted the third parameter the wrong way.
- Did you also add a 16x16 version of the icon to the icon group? 2) Uhm... wasn't there a parameter in the OnMouseWheel function that tells you how many notches were scrolled? Multiply it with the UINT nLinesPerScroll after you called