Click here to Skip to main content
15,884,855 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 4:26
RoyceF24-Jan-06 4:26 
GeneralRe: Selection is gray in a CListCtrl Pin
Joel Lucsy24-Jan-06 4:30
Joel Lucsy24-Jan-06 4:30 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 4:47
RoyceF24-Jan-06 4:47 
GeneralRe: Selection is gray in a CListCtrl Pin
Joel Lucsy24-Jan-06 5:09
Joel Lucsy24-Jan-06 5:09 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 5:12
RoyceF24-Jan-06 5:12 
GeneralRe: Selection is gray in a CListCtrl Pin
Joel Lucsy24-Jan-06 5:20
Joel Lucsy24-Jan-06 5:20 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 5:22
RoyceF24-Jan-06 5:22 
GeneralRe: Selection is gray in a CListCtrl Pin
RoyceF24-Jan-06 10:49
RoyceF24-Jan-06 10:49 
I have found a fix for this problem, but I can't as yet explain why it works the way that it does. I am now creating my ListCtrl like so:

	DWORD dwStyle = WS_CHILD | WS_TABSTOP;<br />
	dwStyle |= LVS_ALIGNTOP | LVS_AUTOARRANGE | LVS_ICON | LVS_SHOWSELALWAYS | LVS_SINGLESEL;<br />
	if ( bVisible )<br />
		dwStyle |= WS_VISIBLE;<br />
<br />
	HWND hWnd = ::CreateWindow( "SysListView32", NULL, dwStyle, <br />
					rcTree.left, rcTree.top, rcTree.Width(), rcTree.Height(), <br />
					m_hWnd, NULL, AfxGetInstanceHandle(), NULL );<br />
	m_ctlComponents.Attach( hWnd );


Problem is fixed.
QuestionJava c++ integration Pin
pplshero5423-Jan-06 6:33
pplshero5423-Jan-06 6:33 
AnswerRe: Java c++ integration Pin
jhwurmbach23-Jan-06 7:05
jhwurmbach23-Jan-06 7:05 
QuestionIs it possible to serialize a SAFEARRAY to a buffer? Pin
domehead23-Jan-06 6:23
domehead23-Jan-06 6:23 
Questionrecord wave using visual c++ (real time) Pin
mohahhh23-Jan-06 6:20
mohahhh23-Jan-06 6:20 
AnswerRe: record wave using visual c++ (real time) Pin
normanS23-Jan-06 19:22
normanS23-Jan-06 19:22 
Questionedit box vector Pin
francescot23-Jan-06 5:28
francescot23-Jan-06 5:28 
AnswerRe: edit box vector Pin
Chris Losinger23-Jan-06 5:40
professionalChris Losinger23-Jan-06 5:40 
GeneralRe: edit box vector Pin
francescot23-Jan-06 5:50
francescot23-Jan-06 5:50 
GeneralRe: edit box vector Pin
francescot23-Jan-06 5:55
francescot23-Jan-06 5:55 
GeneralRe: edit box vector Pin
francescot23-Jan-06 6:36
francescot23-Jan-06 6:36 
GeneralRe: edit box vector Pin
David Crow23-Jan-06 7:50
David Crow23-Jan-06 7:50 
GeneralRe: edit box vector Pin
Chris Losinger23-Jan-06 5:55
professionalChris Losinger23-Jan-06 5:55 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 6:15
jhwurmbach23-Jan-06 6:15 
GeneralRe: edit box vector Pin
francescot23-Jan-06 6:42
francescot23-Jan-06 6:42 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 7:00
jhwurmbach23-Jan-06 7:00 
GeneralRe: edit box vector Pin
francescot23-Jan-06 7:29
francescot23-Jan-06 7:29 
GeneralRe: edit box vector Pin
jhwurmbach23-Jan-06 21:41
jhwurmbach23-Jan-06 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.