Click here to Skip to main content
15,895,740 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
GeneralRe: Listview header column question Pin
Shog930-Sep-02 14:31
sitebuilderShog930-Sep-02 14:31 
GeneralRe: Listview header column question Pin
alex.barylski30-Sep-02 15:58
alex.barylski30-Sep-02 15:58 
Generalsaving data Pin
xai30-Sep-02 13:44
xai30-Sep-02 13:44 
GeneralRe: saving data Pin
valikac30-Sep-02 15:26
valikac30-Sep-02 15:26 
GeneralRe: saving data Pin
jhwurmbach30-Sep-02 21:36
jhwurmbach30-Sep-02 21:36 
QuestionCharacter position of caret (CEdit)? Pin
Anonymous30-Sep-02 12:09
Anonymous30-Sep-02 12:09 
AnswerRe: Character position of caret (CEdit)? Pin
RedZenBird30-Sep-02 12:26
RedZenBird30-Sep-02 12:26 
GeneralNew dialogs Pin
Brakanjan30-Sep-02 11:44
Brakanjan30-Sep-02 11:44 
GeneralRe: New dialogs Pin
Joaquín M López Muñoz30-Sep-02 11:42
Joaquín M López Muñoz30-Sep-02 11:42 
GeneralRe: New dialogs Pin
Brakanjan30-Sep-02 11:58
Brakanjan30-Sep-02 11:58 
GeneralWebBrowser Control & Getting the HTML Source Pin
carrie30-Sep-02 10:47
carrie30-Sep-02 10:47 
GeneralRe: WebBrowser Control & Getting the HTML Source Pin
Stephane Rodriguez.30-Sep-02 11:03
Stephane Rodriguez.30-Sep-02 11:03 
GeneralRe: WebBrowser Control & Getting the HTML Source Pin
carrie30-Sep-02 11:57
carrie30-Sep-02 11:57 
GeneralRe: WebBrowser Control & Getting the HTML Source Pin
ColinDavies30-Sep-02 14:07
ColinDavies30-Sep-02 14:07 
GeneralRe: WebBrowser Control & Getting the HTML Source Pin
carrie30-Sep-02 22:01
carrie30-Sep-02 22:01 
Generalplease Help for darg drop implementation Pin
rev30-Sep-02 10:37
rev30-Sep-02 10:37 

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.