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. List View not working at Window 98

List View not working at Window 98

Scheduled Pinned Locked Moved C / C++ / MFC
1 Posts 1 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.
  • A Offline
    A Offline
    aaaan
    wrote on last edited by
    #1

    Hi Everybody! I m working on a VC++ application in which i m creating a SDI application. IN this application I create a list Ctrl on CView at run time to show the data.The part of the code which i use to create the list on the CView at run time is void CMyApplicationView::ShowListView() { if(p_ListView == NULL) { p_ListView = new CMyListView; CRect rect; GetClientRect(rect); p_ListView->Create(NULL, NULL, LVS_EX_GRIDLINES|WS_CHILD|WS_VISIBLE, rect, this, 1012, NULL); CFont *SimpleFont = new CFont; CDC *dc = GetDC(); int size = 12; CString FaceName = "Times New Roman"; SimpleFont->CreatePointFont(size*10,FaceName,dc); CListCtrl& MyCtrl = p_ListView->GetListCtrl(); MyCtrl.GetHeaderCtrl()->SetFont(SimpleFont); MyCtrl.SetExtendedStyle(LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT); delete SimpleFont; p_ListView->ShowWindow(WS_MAXIMIZE); } } This code is working properly on all the OS except 98. In win 98 the ListView is not show in the Right pane of my application window. Pls help me so that this code also works in Window 98. Ansh

    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