Click here to Skip to main content
15,903,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding tabs to a CTabCrtl Pin
monrobot132-Oct-02 13:24
monrobot132-Oct-02 13:24 
GeneralRe: Adding tabs to a CTabCrtl Pin
Ravi Bhavnani2-Oct-02 13:27
professionalRavi Bhavnani2-Oct-02 13:27 
GeneralRe: Adding tabs to a CTabCrtl Pin
monrobot133-Oct-02 13:23
monrobot133-Oct-02 13:23 
GeneralRe: Adding tabs to a CTabCrtl Pin
monrobot133-Oct-02 13:35
monrobot133-Oct-02 13:35 
GeneralRe: Adding tabs to a CTabCrtl Pin
Ravi Bhavnani3-Oct-02 15:24
professionalRavi Bhavnani3-Oct-02 15:24 
GeneralRe: Adding tabs to a CTabCrtl Pin
monrobot135-Oct-02 8:38
monrobot135-Oct-02 8:38 
GeneralRe: Adding tabs to a CTabCrtl Pin
Ravi Bhavnani5-Oct-02 8:41
professionalRavi Bhavnani5-Oct-02 8:41 
GeneralRe: Adding tabs to a CTabCrtl Pin
Daniel Strigl2-Oct-02 10:40
Daniel Strigl2-Oct-02 10:40 
GeneralRe: Adding tabs to a CTabCrtl Pin
Ravi Bhavnani2-Oct-02 10:54
professionalRavi Bhavnani2-Oct-02 10:54 
GeneralRe: Adding tabs to a CTabCrtl Pin
Daniel Strigl2-Oct-02 19:17
Daniel Strigl2-Oct-02 19:17 
GeneralRe: Adding tabs to a CTabCrtl Pin
Ravi Bhavnani3-Oct-02 5:01
professionalRavi Bhavnani3-Oct-02 5:01 
Questionwhy i print out nothing? Pin
wangnanjing30-Sep-02 16:25
wangnanjing30-Sep-02 16:25 
AnswerRe: why i print out nothing? Pin
Chris Losinger30-Sep-02 16:27
professionalChris Losinger30-Sep-02 16:27 
GeneralPointer Elements & STL Containers :: STL Pin
valikac30-Sep-02 15:53
valikac30-Sep-02 15:53 
GeneralRe: Pointer Elements & STL Containers :: STL Pin
Chris Losinger30-Sep-02 16:24
professionalChris Losinger30-Sep-02 16:24 
GeneralRe: Pointer Elements & STL Containers :: STL Pin
RedZenBird30-Sep-02 17:46
RedZenBird30-Sep-02 17:46 
GeneralRe: Pointer Elements & STL Containers :: STL Pin
valikac30-Sep-02 18:00
valikac30-Sep-02 18:00 
GeneralString String! Pin
sherry_ca30-Sep-02 15:39
sherry_ca30-Sep-02 15:39 
GeneralRe: String String! Pin
Chris Losinger30-Sep-02 16:26
professionalChris Losinger30-Sep-02 16:26 
GeneralRe: String String! Pin
sherry_ca30-Sep-02 16:58
sherry_ca30-Sep-02 16:58 
GeneralRe: String String! Pin
Chris Losinger30-Sep-02 17:25
professionalChris Losinger30-Sep-02 17:25 
GeneralCList and flat DB Pin
G. White30-Sep-02 14:23
G. White30-Sep-02 14:23 
GeneralRe: CList and flat DB Pin
RedZenBird30-Sep-02 17:53
RedZenBird30-Sep-02 17:53 
GeneralRe: CList and flat DB Pin
G. White1-Oct-02 5:16
G. White1-Oct-02 5:16 
GeneralListview header column question Pin
alex.barylski30-Sep-02 13:45
alex.barylski30-Sep-02 13:45 
How can I prevent the first column of a listview header from being resized...???

I have tried the following code, but had no success???:

BOOL CTimelineCtrl::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) 
{
	
	HD_NOTIFY* pHDN = (HD_NOTIFY*)lParam;

	// Handle message
	switch(pHDN->hdr.code){
		case HDN_BEGINTRACK:
			// Don't allow column resizing
			if(pHDN->iItem==0){ 
				*pResult=TRUE;
				return TRUE;
			}
			break;
		case HDN_ENDTRACK:
			Invalidate();
			break;
		case HDN_BEGINDRAG:
			*pResult=TRUE;
			return TRUE;
		default:
			break;
	}

	// Holds the width of all columns
	return CListCtrl::OnNotify(wParam, lParam, pResult);
}


Thanx in advance! Smile | :)

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr

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.