need help MFC
-
I am doing something like this...
void View::OnView() { Dialog dlg(); if(dlg.DoModal() == IDCANCEL) return; COIN Coin; if (dlg.m_ValCoinSwitch == " some text") Coin.lights[WFS_SIU_COINSWITCH] = ENABLE; else (dlg.m_ValCoin2Switch == "some text") Coin.lights[WFS_SIU_COINSWITCH] = DISABLE; } `Now, what I am doing in here is "bringing the dialog with DoModal and coded like if Cancel is pressed, then it should return otherwise should run the OK". Now, I wonder what should be added before "COIN coin" so that when okay is pressed it should perform ENABLE or DISABLE whatever I chose from ComboBox. Will really appreciate help. Thanbs C++Prog `
-
I am doing something like this...
void View::OnView() { Dialog dlg(); if(dlg.DoModal() == IDCANCEL) return; COIN Coin; if (dlg.m_ValCoinSwitch == " some text") Coin.lights[WFS_SIU_COINSWITCH] = ENABLE; else (dlg.m_ValCoin2Switch == "some text") Coin.lights[WFS_SIU_COINSWITCH] = DISABLE; } `Now, what I am doing in here is "bringing the dialog with DoModal and coded like if Cancel is pressed, then it should return otherwise should run the OK". Now, I wonder what should be added before "COIN coin" so that when okay is pressed it should perform ENABLE or DISABLE whatever I chose from ComboBox. Will really appreciate help. Thanbs C++Prog `
celllllllll wrote:
Now, I wonder what should be added before "COIN coin" so that when okay is pressed it should perform ENABLE or DISABLE...
If the
if(...)
condition evaluates to false, it is already doing that.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
I am doing something like this...
void View::OnView() { Dialog dlg(); if(dlg.DoModal() == IDCANCEL) return; COIN Coin; if (dlg.m_ValCoinSwitch == " some text") Coin.lights[WFS_SIU_COINSWITCH] = ENABLE; else (dlg.m_ValCoin2Switch == "some text") Coin.lights[WFS_SIU_COINSWITCH] = DISABLE; } `Now, what I am doing in here is "bringing the dialog with DoModal and coded like if Cancel is pressed, then it should return otherwise should run the OK". Now, I wonder what should be added before "COIN coin" so that when okay is pressed it should perform ENABLE or DISABLE whatever I chose from ComboBox. Will really appreciate help. Thanbs C++Prog `
As said by
David
, its done already, Is something other you want ?Prasad Notifier using ATL | Operator new[],delete[][^]
-
celllllllll wrote:
Now, I wonder what should be added before "COIN coin" so that when okay is pressed it should perform ENABLE or DISABLE...
If the
if(...)
condition evaluates to false, it is already doing that.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
I got it worked..Thanks
C++Prog