Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problem about tray icon

problem about tray icon

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benben
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • B 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

      D Offline
      D Offline
      DaFrawg
      wrote on last edited by
      #2
      1. 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.
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups