Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionInvoke another exe from currently running exe Pin
kiranin26-Jan-07 17:36
kiranin26-Jan-07 17:36 
AnswerRe: Invoke another exe from currently running exe Pin
ThatsAlok26-Jan-07 19:32
ThatsAlok26-Jan-07 19:32 
QuestionCOM in VC++ Pin
deeps_cute26-Jan-07 17:02
deeps_cute26-Jan-07 17:02 
QuestionVisual C++ MFC WinSock 2 Reference Pin
Obi Wan 226-Jan-07 13:50
Obi Wan 226-Jan-07 13:50 
AnswerRe: Visual C++ MFC WinSock 2 Reference Pin
Mark Salsbery26-Jan-07 14:03
Mark Salsbery26-Jan-07 14:03 
GeneralRe: Visual C++ MFC WinSock 2 Reference Pin
Obi Wan 227-Jan-07 4:47
Obi Wan 227-Jan-07 4:47 
GeneralRe: Visual C++ MFC WinSock 2 Reference Pin
Mark Salsbery27-Jan-07 7:30
Mark Salsbery27-Jan-07 7:30 
QuestionCListView; getting rid of spurious horizontal scrollbar [modified] Pin
Joe Woodbury26-Jan-07 12:34
professionalJoe Woodbury26-Jan-07 12:34 
I have created a report list view with columns sized so horizontal scrollbar does not appear. I respond to the WM_SIZE message to change the column with, but sometimes a spurious horizontal scrollbar from appears. As soon as you try to use it, it goes away. (It also doesn't use themes in XP!)

I've tried several methods to stop this from happening, but am at a loss.

I even resorted to putting this in the OnSize() handler:

<code>	if (m_listCtrl.m_hWnd)
	{
		DWORD style = GetWindowLong(m_listCtrl.m_hWnd, GWL_STYLE);
		if (style & WS_HSCROLL)
			SetWindowLong(m_listCtrl.m_hWnd, 
                                        GWL_STYLE, (style & ~WS_HSCROLL));
	}
</code>

I can break on the SetWindowLong() call, but it doesn't actually get rid of the scroll bar.


-- modified at 19:01 Friday 26th January, 2007

Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke

AnswerRe: CListView; getting rid of spurious horizontal scrollbar Pin
Ravi Bhavnani26-Jan-07 12:59
professionalRavi Bhavnani26-Jan-07 12:59 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury26-Jan-07 13:06
professionalJoe Woodbury26-Jan-07 13:06 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Ravi Bhavnani26-Jan-07 13:09
professionalRavi Bhavnani26-Jan-07 13:09 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury26-Jan-07 13:23
professionalJoe Woodbury26-Jan-07 13:23 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Ravi Bhavnani26-Jan-07 13:27
professionalRavi Bhavnani26-Jan-07 13:27 
AnswerRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery26-Jan-07 13:54
Mark Salsbery26-Jan-07 13:54 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury26-Jan-07 15:12
professionalJoe Woodbury26-Jan-07 15:12 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery26-Jan-07 16:27
Mark Salsbery26-Jan-07 16:27 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 11:34
professionalJoe Woodbury27-Jan-07 11:34 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery27-Jan-07 11:42
Mark Salsbery27-Jan-07 11:42 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 12:24
professionalJoe Woodbury27-Jan-07 12:24 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery27-Jan-07 11:49
Mark Salsbery27-Jan-07 11:49 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 12:32
professionalJoe Woodbury27-Jan-07 12:32 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 13:01
professionalJoe Woodbury27-Jan-07 13:01 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery27-Jan-07 15:35
Mark Salsbery27-Jan-07 15:35 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Joe Woodbury27-Jan-07 17:41
professionalJoe Woodbury27-Jan-07 17:41 
GeneralRe: CListView; getting rid of spurious horizontal scrollbar Pin
Mark Salsbery28-Jan-07 6:54
Mark Salsbery28-Jan-07 6:54 

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.