Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDoes anyone know of a good source code control system? Pin
rbc8-May-02 11:42
rbc8-May-02 11:42 
AnswerRe: Does anyone know of a good source code control system? Pin
Anna-Jayne Metcalfe8-May-02 22:02
Anna-Jayne Metcalfe8-May-02 22:02 
GeneralSetWindowLong ( GCL_HBRBACKGROUND ) Pin
Mike Doner8-May-02 11:23
Mike Doner8-May-02 11:23 
GeneralRe: SetWindowLong ( GCL_HBRBACKGROUND ) Pin
Jeremy Falcon8-May-02 11:32
professionalJeremy Falcon8-May-02 11:32 
GeneralListbox, avoid autoscroll Pin
8-May-02 10:26
suss8-May-02 10:26 
GeneralRe: Listbox, avoid autoscroll Pin
Joaquín M López Muñoz8-May-02 10:40
Joaquín M López Muñoz8-May-02 10:40 
GeneralRe: Listbox, avoid autoscroll Pin
10-May-02 19:00
suss10-May-02 19:00 
GeneralRe: Listbox, avoid autoscroll Pin
11-May-02 7:44
suss11-May-02 7:44 
here it is:

// Check if listbox should be scrolled to end
BOOL CListBoxChat::IsAutoScroll()
{
	int nBottom = GetBottomIndex();		
	if(nBottom == LB_ERR) return FALSE;
	return (GetBottomIndex() == GetCount()-1)?TRUE:FALSE;
}

// Returns last visible item in a listbox
int CListBoxChat::GetBottomIndex()
{
	ASSERT(m_hWnd);
	CRect rect;
	GetClientRect(rect);				
	int nIndex = LOWORD(::SendMessage(m_hWnd, LB_ITEMFROMPOINT, 0, MAKELPARAM(0, rect.bottom)));

	//note: ItemFromPoint returns a WORD not a UINT!
	if (nIndex == LOWORD(LB_ERR)) 			
	{
		nIndex = LB_ERR;
	}
	return nIndex;
}

GeneralRe: Listbox, avoid autoscroll Pin
Jack Handy8-May-02 10:41
Jack Handy8-May-02 10:41 
Generalrefrence function ... Pin
Hadi Rezaee8-May-02 9:58
Hadi Rezaee8-May-02 9:58 
GeneralRe: refrence function ... Pin
Nish Nishant8-May-02 10:03
sitebuilderNish Nishant8-May-02 10:03 
GeneralRe: refrence function ... Pin
Joaquín M López Muñoz8-May-02 10:05
Joaquín M López Muñoz8-May-02 10:05 
Generalusing accelerator in a dialog based project Pin
lucy8-May-02 9:15
lucy8-May-02 9:15 
GeneralRe: using accelerator in a dialog based project Pin
Joaquín M López Muñoz8-May-02 9:25
Joaquín M López Muñoz8-May-02 9:25 
GeneralRe: using accelerator in a dialog based project Pin
lucy8-May-02 9:40
lucy8-May-02 9:40 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 9:45
sitebuilderNish Nishant8-May-02 9:45 
GeneralRe: using accelerator in a dialog based project Pin
Joaquín M López Muñoz8-May-02 10:07
Joaquín M López Muñoz8-May-02 10:07 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 10:13
sitebuilderNish Nishant8-May-02 10:13 
GeneralRe: using accelerator in a dialog based project Pin
Tim Smith8-May-02 10:35
Tim Smith8-May-02 10:35 
GeneralRe: using accelerator in a dialog based project Pin
Nish Nishant8-May-02 10:40
sitebuilderNish Nishant8-May-02 10:40 
GeneralIJW Question Pin
Nick Parker8-May-02 9:11
protectorNick Parker8-May-02 9:11 
GeneralRe: IJW Question Pin
Nish Nishant8-May-02 9:28
sitebuilderNish Nishant8-May-02 9:28 
GeneralRe: IJW Question Pin
Nick Parker8-May-02 9:31
protectorNick Parker8-May-02 9:31 
GeneralRe: IJW Question Pin
Rama Krishna Vavilala8-May-02 9:40
Rama Krishna Vavilala8-May-02 9:40 
GeneralPrint Preview & Printing Pin
Mash8-May-02 8:51
Mash8-May-02 8:51 

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.