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

C / C++ / MFC

 
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 
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 
mem_fun_ref and relatives have severe design flaws as for the constness of their arguments, so you'll have to write some code yourself. The basic idea is to have an object presenting a normalized interface to for_each that forwards the call to the appropriate foo object and method. Just like this:
class foo
{
  void foo()
  { 
    std::for_each(vec.begin(),vec.end(),bar_stub(this));
  }
 
  void bar(int val) 
  {
    ...
  }
 
  struct bar_stub
  {
    bar_stub(foo* f):f(f){}
    void operator(int val)
    {
      f->bar(val);
    }
  private:
    foo* f; 
  };
};




Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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 
GeneralRe: How do I print a MsChart control ? Pin
Qadddd11-Jun-02 1:26
Qadddd11-Jun-02 1:26 
GeneralRe: How do I print a MsChart control ? Pin
Christian Graus11-Jun-02 1:34
protectorChristian Graus11-Jun-02 1:34 
GeneralRe: How do I print a MsChart control ? Pin
Qadddd11-Jun-02 4:53
Qadddd11-Jun-02 4:53 
AnswerRe: How do I print a MsChart control ? Pin
nw6031211-Jun-02 9:37
nw6031211-Jun-02 9:37 
GeneralValidating Combo data Pin
Hel10-Jun-02 23:33
Hel10-Jun-02 23:33 
GeneralRe: Validating Combo data Pin
Nish Nishant11-Jun-02 0:16
sitebuilderNish Nishant11-Jun-02 0:16 

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.