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. Tile View problem when using Owner Data [modified]

Tile View problem when using Owner Data [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestion
1 Posts 1 Posters 1 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.
  • J Offline
    J Offline
    Justin Tay
    wrote on last edited by
    #1

    I'm having a problem using tile view in my listview control. It works alright if I'm not using owner data, but if I do use owner data, the listview doesn't draw the label text properly. It looks like it's not bothering to calculate the offset for the label based on the additional lines and just draws at the same spot. Image of problem Here are some of the relevant code snippets. Did I miss any particular step?

    LVTILEVIEWINFO lvtvi = { sizeof(LVTILEVIEWINFO), LVTVIM_COLUMNS};
    lvtvi.cLines = 2;
    lvtvi.dwFlags = LVTVIF_AUTOSIZE;
    BOOL bRet = m_view.SetTileViewInfo ( &lvtvi ); // bRet returns TRUE

    OnGetDispInfo(...)
    {
    :

    if(pItem->mask & LVIF_COLUMNS)
    {
    pItem->puColumns[0] = 1;
    pItem->puColumns[1] = 2;
    pItem->cColumns = 2;
    }

    :
    }

    -- modified at 13:58 Monday 24th July, 2006

    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