Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCan't profile from MSDEV98 Pin
Jonathan Gilligan17-Jun-02 13:27
Jonathan Gilligan17-Jun-02 13:27 
GeneralProblem Addressed Pin
Jonathan Gilligan17-Jun-02 14:26
Jonathan Gilligan17-Jun-02 14:26 
GeneralRe: Problem Addressed Pin
17-Jun-02 14:43
suss17-Jun-02 14:43 
GeneralFiltering a image ! :suss: Pin
Hadi Rezaee17-Jun-02 12:22
Hadi Rezaee17-Jun-02 12:22 
GeneralRe: Filtering a image ! :suss: Pin
Christian Graus17-Jun-02 12:54
protectorChristian Graus17-Jun-02 12:54 
GeneralRe: Filtering a image ! :suss: Pin
Hadi Rezaee19-Jun-02 4:30
Hadi Rezaee19-Jun-02 4:30 
GeneralCPropertySheet and its "Apply" button Pin
Abin17-Jun-02 12:14
Abin17-Jun-02 12:14 
GeneralRe: CPropertySheet and its "Apply" button Pin
Le centriste17-Jun-02 16:22
Le centriste17-Jun-02 16:22 
CPropertyPage::SetModified

From MSDN:

Example

// OnColorClicked() is a member function of CColorPage (a
// CPropertyPage-derived class). It is called whenever a radio button
// is selected on the page. Call SetModified() to enable the Apply 
// button whenever a new selection is made. m_Color is a member
// variable of CColorPage and it is to store the selected RGB color.

BEGIN_MESSAGE_MAP(CColorPage, CPropertyPage)
   ON_CONTROL_RANGE(BN_CLICKED, IDC_BLACK, IDC_BLUE, OnColorClicked)
   //{{AFX_MSG_MAP(CColorPage)
   //}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CColorPage::OnColorClicked(UINT nCmdID)
{
   COLORREF color;
   switch (nCmdID)
   {
   case IDC_BLACK:
      color = RGB(0, 0, 0);
      break;

   case IDC_RED:
      color = RGB(255, 0, 0);
      break;

   case IDC_GREEN:
      color = RGB(0, 255, 0);
      break;

   case IDC_BLUE:
      color = RGB(0, 0, 255);
      break;
   }

   if (color != m_Color)
   {
      m_Color = color;
      SetModified();    //  Enable Apply Now button. <---
   }
}


Michel

It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.

- TreeBeard
GeneralThank you, and gimme more... Pin
Abin17-Jun-02 16:41
Abin17-Jun-02 16:41 
GeneralRe: Thank you, and gimme more... Pin
James R. Twine18-Jun-02 3:06
James R. Twine18-Jun-02 3:06 
GeneralThank you Pin
Abin18-Jun-02 7:55
Abin18-Jun-02 7:55 
GeneralError when using free to free memory allocated with malloc. Pin
redeemer17-Jun-02 11:54
redeemer17-Jun-02 11:54 
GeneralRe: Error when using free to free memory allocated with malloc. Pin
Roger Broomfield17-Jun-02 12:49
Roger Broomfield17-Jun-02 12:49 
QuestionHow do i keep colors from changing in resource editor? Pin
redeemer17-Jun-02 11:05
redeemer17-Jun-02 11:05 
AnswerRe: How do i keep colors from changing in resource editor? Pin
James R. Twine17-Jun-02 11:40
James R. Twine17-Jun-02 11:40 
GeneralRe: How do i keep colors from changing in resource editor? Pin
redeemer17-Jun-02 11:57
redeemer17-Jun-02 11:57 
GeneralRe: How do i keep colors from changing in resource editor? Pin
James R. Twine18-Jun-02 3:02
James R. Twine18-Jun-02 3:02 
GeneralHelp required to calculate difference between two bitmaps Pin
17-Jun-02 10:54
suss17-Jun-02 10:54 
GeneralRe: Help required to calculate difference between two bitmaps Pin
redeemer17-Jun-02 11:15
redeemer17-Jun-02 11:15 
GeneralRe: Help required to calculate difference between two bitmaps Pin
James R. Twine17-Jun-02 11:44
James R. Twine17-Jun-02 11:44 
QuestionHow to set pragma option for a single source file Pin
Aaron Schaefer17-Jun-02 10:10
Aaron Schaefer17-Jun-02 10:10 
AnswerRe: How to set pragma option for a single source file Pin
17-Jun-02 10:12
suss17-Jun-02 10:12 
AnswerRe: How to set pragma option for a single source file Pin
Chris Losinger17-Jun-02 10:20
professionalChris Losinger17-Jun-02 10:20 
GeneralRe: How to set pragma option for a single source file Pin
Aaron Schaefer17-Jun-02 11:13
Aaron Schaefer17-Jun-02 11:13 
GeneralRe: How to set pragma option for a single source file Pin
Aaron Schaefer17-Jun-02 11:33
Aaron Schaefer17-Jun-02 11:33 

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.