Click here to Skip to main content
16,011,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to change font color! Pin
tiaozi11-Jun-02 2:03
tiaozi11-Jun-02 2:03 
AnswerRe: how to change font color! Pin
Gary Kirkham11-Jun-02 3:00
Gary Kirkham11-Jun-02 3:00 
QuestionIf ListView_GetSelectedCount returns more than 1, how do i know which items are selected? Pin
redeemer11-Jun-02 1:37
redeemer11-Jun-02 1:37 
AnswerRe: If ListView_GetSelectedCount returns more than 1, how do i know which items are selected? Pin
Chris Losinger11-Jun-02 4:05
professionalChris Losinger11-Jun-02 4:05 
GeneralRe: If ListView_GetSelectedCount returns more than 1, how do i know which items are selected? Pin
redeemer11-Jun-02 4:56
redeemer11-Jun-02 4:56 
GeneralRe: If ListView_GetSelectedCount returns more than 1, how do i know which items are selected? Pin
Chris Losinger11-Jun-02 5:29
professionalChris Losinger11-Jun-02 5:29 
GeneralRe: If ListView_GetSelectedCount returns more than 1, how do i know which items are selected? Pin
redeemer11-Jun-02 7:29
redeemer11-Jun-02 7:29 
Generalfor_each Pin
11-Jun-02 0:36
suss11-Jun-02 0:36 
Is there any way to call a member function from another member function with for_each.... ie:

class foo {
void foo() {
// create vector of ints
std::for_each( vec.begin(), vec.end(), bar );
}

void bar( int val ) {
// do stuff with val
}
}

Ive tried various things for the third param to for_each, eg foo::bar, &foo::bar. It only works when the function is static.

Thanks
Ben
GeneralRe: for_each Pin
Christian Graus11-Jun-02 1:26
protectorChristian Graus11-Jun-02 1:26 
GeneralRe: for_each Pin
Paul M Watt11-Jun-02 5:41
mentorPaul M Watt11-Jun-02 5:41 
GeneralRe: for_each Pin
Christian Graus11-Jun-02 10:29
protectorChristian Graus11-Jun-02 10:29 
GeneralRe: for_each Pin
Paul M Watt11-Jun-02 11:16
mentorPaul M Watt11-Jun-02 11:16 
GeneralRe: for_each Pin
Le centriste11-Jun-02 3:03
Le centriste11-Jun-02 3:03 
GeneralRe: for_each Pin
Joaquín M López Muñoz11-Jun-02 9:55
Joaquín M López Muñoz11-Jun-02 9:55 
GeneralRe: for_each Pin
Christian Graus11-Jun-02 10:28
protectorChristian Graus11-Jun-02 10:28 
GeneralRe: for_each Pin
Joaquín M López Muñoz11-Jun-02 10:55
Joaquín M López Muñoz11-Jun-02 10:55 
GeneralRe: for_each Pin
Christian Graus11-Jun-02 11:01
protectorChristian Graus11-Jun-02 11:01 
GeneralRe: for_each Pin
Joaquín M López Muñoz11-Jun-02 11:13
Joaquín M López Muñoz11-Jun-02 11:13 
GeneralRe: for_each Pin
Christian Graus11-Jun-02 11:35
protectorChristian Graus11-Jun-02 11:35 
QuestionEdit-Box backcolor ?? Pin
RuiSantiago11-Jun-02 0:44
RuiSantiago11-Jun-02 0:44 
AnswerRe: Edit-Box backcolor ?? Pin
Nish Nishant11-Jun-02 1:13
sitebuilderNish Nishant11-Jun-02 1:13 
GeneralRe: Edit-Box backcolor ?? Pin
RuiSantiago11-Jun-02 1:34
RuiSantiago11-Jun-02 1:34 
GeneralRe: Edit-Box backcolor ?? Pin
Christian Graus11-Jun-02 1:35
protectorChristian Graus11-Jun-02 1:35 
QuestionHow do I print a MsChart control ? Pin
Qadddd10-Jun-02 23:49
Qadddd10-Jun-02 23:49 
AnswerRe: How do I print a MsChart control ? Pin
Christian Graus11-Jun-02 0:00
protectorChristian Graus11-Jun-02 0:00 

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.