Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiple inheritance in vc++ Pin
sunit523-Nov-05 20:18
sunit523-Nov-05 20:18 
GeneralRe: Multiple inheritance in vc++ Pin
infotechtata23-Nov-05 20:28
infotechtata23-Nov-05 20:28 
GeneralRe: Multiple inheritance in vc++ Pin
sunit523-Nov-05 21:04
sunit523-Nov-05 21:04 
GeneralRe: Multiple inheritance in vc++ Pin
toxcct23-Nov-05 21:29
toxcct23-Nov-05 21:29 
QuestionResizing column in list control Pin
jayshml23-Nov-05 18:44
jayshml23-Nov-05 18:44 
AnswerRe: Resizing column in list control Pin
Vancouver23-Nov-05 18:53
Vancouver23-Nov-05 18:53 
GeneralRe: Resizing column in list control Pin
jayshml23-Nov-05 19:08
jayshml23-Nov-05 19:08 
GeneralEvent handlers for OnBegintrack and OnEndtrack Pin
Vancouver23-Nov-05 19:30
Vancouver23-Nov-05 19:30 
<br />
BEGIN_MESSAGE_MAP(GridClass, CListCtrl)<br />
	//{{AFX_MSG_MAP(yourclass)<br />
...<br />
	//}}AFX_MSG_MAP<br />
<br />
	ON_NOTIFY(HDN_BEGINTRACKA,		0, your_OnBegintrack)<br />
	ON_NOTIFY(HDN_BEGINTRACKW,		0, your_OnBegintrack)<br />
	ON_NOTIFY(HDN_ENDTRACKA,		0, your_OnEndtrack)<br />
	ON_NOTIFY(HDN_ENDTRACKW,		0, your_OnEndtrack)<br />
<br />
END_MESSAGE_MAP()<br />


Note, that the control id of the CHeaderCtrl in CListCtrl is always zero;
thus, the second parameter (that is the control filter) in the ON_NOTIFYs is zero.

The "A" and "W" versions are for ANSI and UNICODE (Wide) environment;
in any given program run, only one or the other will become active.

Btw, OnBegintrack receives control, when the user grabs the right-side divider of a column with the mouse (starting resizing). OnEntrack receives control, when the user releases the divider.

The parameters are:

void yourClass::your_OnBegintrack(NMHEADER *nmheader, LRESULT* pResult)

void yourClass::your_OnBegintrack(NMHEADER *nmheader, LRESULT* pResult)

(*nmheader).iItem is the column index from zero.

*pResult should be set to TRUE if you don't allow resizing (TRUE indicates, that you processed the event completely), and FALSE, if you want MFC to finalize resizing.
GeneralRe: Event handlers for OnBegintrack and OnEndtrack Pin
jayshml23-Nov-05 19:46
jayshml23-Nov-05 19:46 
Questionhow to display a gif by cximage Pin
blackeye200423-Nov-05 18:37
blackeye200423-Nov-05 18:37 
AnswerRe: how to display a gif by cximage Pin
vikas amin24-Nov-05 0:17
vikas amin24-Nov-05 0:17 
AnswerRe: how to display a gif by cximage Pin
ThatsAlok29-Nov-05 18:22
ThatsAlok29-Nov-05 18:22 
QuestionHow to do event driven in MFC Pin
LaHaHa23-Nov-05 18:19
LaHaHa23-Nov-05 18:19 
AnswerRe: How to do event driven in MFC Pin
Cool Ju23-Nov-05 20:05
Cool Ju23-Nov-05 20:05 
GeneralRe: How to do event driven in MFC Pin
LaHaHa23-Nov-05 22:35
LaHaHa23-Nov-05 22:35 
GeneralRe: How to do event driven in MFC Pin
Loc Milkyway24-Nov-05 6:03
Loc Milkyway24-Nov-05 6:03 
QuestionStill in problem... Pin
Aqueel23-Nov-05 17:53
Aqueel23-Nov-05 17:53 
AnswerRe: Still in problem... Pin
kakan23-Nov-05 19:46
professionalkakan23-Nov-05 19:46 
GeneralRe: Still in problem... Pin
Aqueel25-Nov-05 3:00
Aqueel25-Nov-05 3:00 
GeneralRe: Still in problem... Pin
kakan27-Nov-05 19:06
professionalkakan27-Nov-05 19:06 
QuestionDisplaying image on full screen Pin
Vancouver23-Nov-05 16:49
Vancouver23-Nov-05 16:49 
AnswerRe: Displaying image on full screen Pin
ThatsAlok29-Nov-05 17:59
ThatsAlok29-Nov-05 17:59 
GeneralRe: Displaying image on full screen Pin
Vancouver29-Nov-05 20:15
Vancouver29-Nov-05 20:15 
Questionvisual basic and access Pin
RiNaZaiNoN23-Nov-05 15:24
RiNaZaiNoN23-Nov-05 15:24 
QuestionSort Array of Objects Pin
kenexcelon23-Nov-05 14:23
kenexcelon23-Nov-05 14:23 

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.