Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debugging fun with assembly and user dumps Pin
Tim Smith26-Feb-03 3:33
Tim Smith26-Feb-03 3:33 
GeneralRe: Debugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 4:05
mediamaster4026-Feb-03 4:05 
GeneralDrawing the caption of the property page (in a property sheet) in a different color... Pin
Joan M26-Feb-03 3:12
professionalJoan M26-Feb-03 3:12 
GeneralRe: Drawing the caption of the property page (in a property sheet) in a different color... Pin
Rage26-Feb-03 4:52
professionalRage26-Feb-03 4:52 
GeneralIt doesn't helped, but thank you... Pin
Joan M26-Feb-03 5:00
professionalJoan M26-Feb-03 5:00 
GeneralList 2.0 checkbox and togglebutton Pin
bennyrascal26-Feb-03 3:12
bennyrascal26-Feb-03 3:12 
GeneralRe: List 2.0 checkbox and togglebutton Pin
Rage26-Feb-03 4:47
professionalRage26-Feb-03 4:47 
GeneralRe: List 2.0 checkbox and togglebutton Pin
bennyrascal26-Feb-03 8:26
bennyrascal26-Feb-03 8:26 
Thanks

Can't use true as i get a compiler error:
D:\Development\C++\Source\CheckBoxes\CheckBoxesDlg.cpp(195) : warning C4805: '==' : unsafe mix of type 'struct tagVARIANT (__thiscall CMdcToggleButton::*)(void)' and type 'const bool' in operation

When using the class wizard to add a member variable the only choice i have is a category of control and a variable type of CMdcToggleButton. There are no other choices. If i use the standard checkBox then i get the categories of control and of value and the value bit works.

As far as the updatedata, Here is the actual code:
void CCheckBoxesDlg::OnClickToggleButton1()
{
UpdateData(TRUE);
m_ToggleButton1Control.UpdateData(TRUE);
m_ToggleButton1Control.GetValue();
if (m_ToggleButton1Control.GetValue == false)
{m_ToggleButton1Control.SetForeColor(olive_note);}
else
{m_ToggleButton1Control.SetForeColor(red_note);}

}

As you can see i even did the update two different ways as an experiment.

A similar function for a simple checkbox works perfectly:
void CCheckBoxesDlg::OnClickFormsCheckBox1()
{
UpdateData(TRUE);
if (m_FormsCheckBox1Control.GetValue == 0)
{
m_CommandButtonControl.SetForeColor(blue_note);
m_CommandButtonControl.SetCaption("FormsCheckBox set on");
m_FormsCheckBox1Control.SetBackColor(blue_note);
}
else
{
m_CommandButtonControl.SetForeColor(yellow_note);
m_CommandButtonControl.SetCaption("FormsCheckBox set off");
m_FormsCheckBox1Control.SetBackColor(yellow_note);
}

}


Again thanks for any help as i'm baffled.

benny
Generalsetup the COleCurrency format Pin
Willem B26-Feb-03 3:02
Willem B26-Feb-03 3:02 
GeneralRe: setup the COleCurrency format Pin
Rage26-Feb-03 4:42
professionalRage26-Feb-03 4:42 
GeneralRe: setup the COleCurrency format Pin
RobJones26-Feb-03 5:13
RobJones26-Feb-03 5:13 
GeneralRe: setup the COleCurrency format Pin
Willem B26-Feb-03 21:11
Willem B26-Feb-03 21:11 
GeneralRe: setup the COleCurrency format Pin
RobJones28-Feb-03 3:14
RobJones28-Feb-03 3:14 
GeneralRe: setup the COleCurrency format Pin
willempipi28-Feb-03 3:20
willempipi28-Feb-03 3:20 
GeneralExport problem from a DLL Pin
Raphael Kindt26-Feb-03 3:01
Raphael Kindt26-Feb-03 3:01 
GeneralRe: Export problem from a DLL Pin
Hans Ruck26-Feb-03 3:40
Hans Ruck26-Feb-03 3:40 
GeneralRe: Export problem from a DLL Pin
Raphael Kindt26-Feb-03 3:50
Raphael Kindt26-Feb-03 3:50 
GeneralRe: Export problem from a DLL Pin
Hans Ruck26-Feb-03 4:17
Hans Ruck26-Feb-03 4:17 
GeneralRe: Export problem from a DLL Pin
Raphael Kindt26-Feb-03 6:23
Raphael Kindt26-Feb-03 6:23 
Generalfiles!!! Pin
Dennis L26-Feb-03 2:31
Dennis L26-Feb-03 2:31 
GeneralRe: files!!! Pin
Hans Ruck26-Feb-03 2:48
Hans Ruck26-Feb-03 2:48 
GeneralRe: files!!!...Thanks Pin
Dennis L26-Feb-03 4:39
Dennis L26-Feb-03 4:39 
GeneralUI thread Pin
Gary Kirkham26-Feb-03 2:26
Gary Kirkham26-Feb-03 2:26 
GeneralRe: UI thread Pin
Hesham Amin26-Feb-03 2:43
Hesham Amin26-Feb-03 2:43 
GeneralPostThreadMessage Pin
AlexO26-Feb-03 2:50
AlexO26-Feb-03 2:50 

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.