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

C / C++ / MFC

 
QuestionCFileDialog converting??? Pin
14-May-01 0:22
suss14-May-01 0:22 
AnswerRe: CFileDialog converting??? Pin
Tomasz Sowinski14-May-01 0:34
Tomasz Sowinski14-May-01 0:34 
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 
Ahhh, ha ha haaaa! I feel like an idiot.

Actually, it turns out that what makes it work correctly is to set the .mask, .fmt, and .iImage members
before calling GetItem.

I completely forgot that the .mask tells the function which parameters to get. It just seems to me that
the GetItem should get all of the parameters, but that is just me. It still seems odd that I have to
set the .fmt and .iImage parameters as well BEFORE calling GetItem. If I don't, then both of those
parameters get set to weird and useless values by GetItem.

I do still have a problem though. Even if I set the .mask to include the HDI_TEXT flag, the pszText
parameter still does not contain a string after the GetItem call (I set a watch in debug to monitor
that). I have yet to see a valid string in the pszText after the GetItem call. So how do I find out
what the text is in that item of the CHeaderCtrl? Let's say for sake of argument that I wanted to
change the text of the header when the user clicks, but I want different headers to have different
text based on existing text (for example, so say "ascending" or "descending" for the sort order).
I would have to be able to read the existing text to know what I want to changed to. I can't seem
to get at the existing text (without storing in a separate variable which just seems stupid to me).

Thank you SO MUCH for your answer. It put me on the right track.

David.
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 
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 

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.