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