Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to sort file name exactly like Windows Explorer? Pin
Hiusing26-Aug-02 16:05
Hiusing26-Aug-02 16:05 
GeneralMessage Handling for a dialog in a dll Pin
leonwoo26-Aug-02 15:05
leonwoo26-Aug-02 15:05 
GeneralRe: Message Handling for a dialog in a dll Pin
valikac26-Aug-02 15:10
valikac26-Aug-02 15:10 
GeneralRe: Message Handling for a dialog in a dll Pin
leonwoo26-Aug-02 15:25
leonwoo26-Aug-02 15:25 
GeneralRe: Message Handling for a dialog in a dll Pin
Steen Krogsgaard26-Aug-02 21:24
Steen Krogsgaard26-Aug-02 21:24 
Generalusing Appwizard with the "Windows Explorer" style Pin
Tonrar26-Aug-02 12:30
Tonrar26-Aug-02 12:30 
GeneralRe: using Appwizard with the "Windows Explorer" style Pin
Blade[DMS]27-Aug-02 0:31
Blade[DMS]27-Aug-02 0:31 
GeneralLVN_COLUMNCLICK Pin
RK_200026-Aug-02 12:19
RK_200026-Aug-02 12:19 
I have a CListCtrl that is dynamically created. I am trying to add the columnclick event to it, but it doesn't seem to work. Any ideas why? this is what I am doing? Another question I have is how do you tell OnColumnClick which control you are refering to? I noticed that there are not IDs passed to it.

in my .h I have this:
//{{AFX_MSG(CFileView)
...
afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
...
//}}AFX_MSG

in my .cpp


BEGIN_MESSAGE_MAP(CFileView, CListCtrl)
//{{AFX_MSG_MAP(CDetailsView)
ON_NOTIFY_REFLECT(NM_DBLCLK, OnDoubleClick)
//}}AFX_MSG_MAP

void CControllerSelection::OnColumnClick(NMHDR * pNMHDR, LRESULT * pResult)
{
NM_LISTVIEW * pNMListView = (NM_LISTVIEW*) pNMHDR;
m_ControllerList.SortItems(CompareFunc, pNMListView->iSubItem);
*pResult = 0;
}


GeneralRe: LVN_COLUMNCLICK Pin
Tomasz Sowinski26-Aug-02 22:55
Tomasz Sowinski26-Aug-02 22:55 
GeneralQuestion on VS.NET and VS6.0 Compatibility Pin
theorion1626-Aug-02 11:54
susstheorion1626-Aug-02 11:54 
GeneralRe: Question on VS.NET and VS6.0 Compatibility Pin
Chris Losinger26-Aug-02 12:17
professionalChris Losinger26-Aug-02 12:17 
GeneralRe: Question on VS.NET and VS6.0 Compatibility Pin
RichardEastes26-Aug-02 14:43
RichardEastes26-Aug-02 14:43 
GeneralRe: Question on VS.NET and VS6.0 Compatibility Pin
Chris Losinger26-Aug-02 16:19
professionalChris Losinger26-Aug-02 16:19 
Generalwindows queue viewer Pin
Jerry Gao26-Aug-02 11:43
Jerry Gao26-Aug-02 11:43 
GeneralRe: windows queue viewer Pin
Chris Losinger26-Aug-02 12:18
professionalChris Losinger26-Aug-02 12:18 
GeneralRe: windows queue viewer Pin
Jerry Gao26-Aug-02 13:12
Jerry Gao26-Aug-02 13:12 
GeneralImage Name and PrcessID Pin
Ranjan Banerji26-Aug-02 10:49
Ranjan Banerji26-Aug-02 10:49 
GeneralRe: Image Name and PrcessID Pin
adara26-Aug-02 18:36
adara26-Aug-02 18:36 
GeneralDisable <enter> in Property Sheet Pin
SilliSquid26-Aug-02 10:13
SilliSquid26-Aug-02 10:13 
GeneralRe: Disable <enter> in Property Sheet Pin
l a u r e n26-Aug-02 10:57
l a u r e n26-Aug-02 10:57 
GeneralRe: Disable <enter> in Property Sheet Pin
lucy26-Aug-02 11:07
lucy26-Aug-02 11:07 
GeneralRe: Disable <enter> in Property Sheet Pin
Shog926-Aug-02 19:38
sitebuilderShog926-Aug-02 19:38 
GeneralLinked List & Reference and/or Point :: STL Pin
valikac26-Aug-02 10:08
valikac26-Aug-02 10:08 
GeneralRe: Linked List & Reference and/or Point :: STL Pin
Tomasz Sowinski26-Aug-02 10:11
Tomasz Sowinski26-Aug-02 10:11 
GeneralRe: Linked List & Reference and/or Point :: STL Pin
valikac26-Aug-02 13:25
valikac26-Aug-02 13:25 

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.