Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog converting??? Pin
14-May-01 0:39
suss14-May-01 0:39 
GeneralRe: CFileDialog converting??? Pin
Tomasz Sowinski14-May-01 1:21
Tomasz Sowinski14-May-01 1:21 
GeneralRe: CFileDialog converting??? Pin
14-May-01 2:40
suss14-May-01 2:40 
GeneralPeculiar compiling differences. Pin
David Fleming13-May-01 14:57
David Fleming13-May-01 14:57 
GeneralRe: Peculiar compiling differences. Pin
Michael Dunn13-May-01 16:40
sitebuilderMichael Dunn13-May-01 16:40 
GeneralRe: Peculiar compiling differences. Pin
David Fleming14-May-01 11:50
David Fleming14-May-01 11:50 
GeneralRe: Peculiar compiling differences. Pin
Michael Dunn14-May-01 16:01
sitebuilderMichael Dunn14-May-01 16:01 
GeneralRe: Peculiar compiling differences. Pin
David Fleming17-May-01 18:46
David Fleming17-May-01 18:46 
Aaarghh! I don't think I'm an idiot, but I'll reserve judgement on that.

First off, thank you very much for you input. I appreciate it.

However, it still isn't working out for me. Therefore, I will include the code and you can tell me where I
am going wrong. Here's the code:

void CLVTest3Dlg::OnColumnclickList1(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;

// TODO: Add your control notification handler code here

////Try to retrieve the Text in the column header

//Need pointer to the CHeaderCtrl.
CHeaderCtrl* pHeader = m_LV.GetHeaderCtrl();

//Find out which column header was clicked
int nDx = pNMListView->iSubItem;

//Set up the HDITEM struc
HDITEM hdi; //passes info to/from HeaderCtrl

hdi.pszText = " ";
hdi.cchTextMax = 255;
hdi.mask |= HDI_TEXT;
hdi.fmt |= HDF_STRING;

//Get info from the Header
pHeader->GetItem(nDx, &hdi);


*pResult = 0;
}

It's a Dialog-based MFC program. I have included OLE Automation (because I thought I read somewhere
that if you are going to use the CListCtrl::SetBkImage function it had to enabled (yes? no?)).

Anyway, I've tried just about every permutation of hdi settings I can think of. I keep getting an
unhandled access violation. What is the trick I'm missing here?

Many thanks in advance. David.
GeneralRe: Peculiar compiling differences. Pin
Michael Dunn17-May-01 18:59
sitebuilderMichael Dunn17-May-01 18:59 
GeneralRe: Peculiar compiling differences. Pin
David Fleming17-May-01 19:58
David Fleming17-May-01 19:58 
GeneralRe: Peculiar compiling differences. Pin
13-May-01 22:13
suss13-May-01 22:13 
QuestionCLongBinary --> CBitmap? Pin
13-May-01 4:44
suss13-May-01 4:44 
GeneralIn ActiveX Component MS Winsock Ver 6I can't senddata from server to client by client use getdata function but it can't receive data. Pin
12-May-01 19:09
suss12-May-01 19:09 
GeneralNeed code for Address Book... Pin
Ting12-May-01 12:08
Ting12-May-01 12:08 
GeneralA window into a big world Pin
Bilal Naveed12-May-01 8:36
Bilal Naveed12-May-01 8:36 
GeneralRe: A window into a big world Pin
Christian Graus12-May-01 11:42
protectorChristian Graus12-May-01 11:42 
GeneralRe: A window into a big world Pin
Pros Chum12-May-01 12:20
Pros Chum12-May-01 12:20 
GeneralRe: A window into a big world Pin
Christian Graus12-May-01 13:29
protectorChristian Graus12-May-01 13:29 
GeneralRe: A window into a big world Pin
Ting16-May-01 11:16
Ting16-May-01 11:16 
GeneralRe: A window into a big world Pin
Christian Graus16-May-01 12:17
protectorChristian Graus16-May-01 12:17 
GeneralRe: A window into a big world Pin
David Fleming14-May-01 15:34
David Fleming14-May-01 15:34 
GeneralChallege Quistion: How to execute program from memory block Pin
12-May-01 7:02
suss12-May-01 7:02 
GeneralRe: Challege Quistion: How to execute program from memory block Pin
Gert Boddaert13-May-01 22:17
Gert Boddaert13-May-01 22:17 
GeneralAvoiding the windows error messageboxes to appear when WriteFile, CopyFile... and disk is removed Pin
Joan M12-May-01 0:44
professionalJoan M12-May-01 0:44 
GeneralRe: Avoiding the windows error messageboxes to appear when WriteFile, CopyFile... and disk is removed Pin
Tomasz Sowinski12-May-01 1:46
Tomasz Sowinski12-May-01 1:46 

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.