Click here to Skip to main content
16,008,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDisplay high-resolution bitmap.. Pin
Chauhan Chirag30-Jun-04 17:08
Chauhan Chirag30-Jun-04 17:08 
GeneralRe: Display high-resolution bitmap.. Pin
Johan Rosengren30-Jun-04 20:14
Johan Rosengren30-Jun-04 20:14 
GeneralWindow Repaint problem Pin
Chauhan Chirag30-Jun-04 17:02
Chauhan Chirag30-Jun-04 17:02 
GeneralRe: Window Repaint problem Pin
Johan Rosengren30-Jun-04 20:26
Johan Rosengren30-Jun-04 20:26 
Questioncan ADO and ODBC be mixed to use in a database application program? Pin
vividtang30-Jun-04 13:55
vividtang30-Jun-04 13:55 
AnswerRe: can ADO and ODBC be mixed to use in a database application program? Pin
palbano30-Jun-04 16:10
palbano30-Jun-04 16:10 
AnswerRe: can ADO and ODBC be mixed to use in a database application program? Pin
Antony M Kancidrowski30-Jun-04 23:51
Antony M Kancidrowski30-Jun-04 23:51 
Generaldialog box constantly reappearing Pin
elephantstar30-Jun-04 13:14
elephantstar30-Jun-04 13:14 
Hi there,

I have a group of three checkboxes. When I click on CheckBox2, a dialog box appears asking for user input. What it's suppose to do is when a user cancels a selection it should default to the first checkbox by making a call to CheckRadioButton. It does default but once the user clicks away from the application, the dialog box reappears as if the function to open up the dialog box is called once again. I isolated the problem and found that its the CheckRadioButton() that causes it. I don't know how or why but its the main source of the problem. How can I correct this?
Please see my code below. Thanks.

void CCheckBox::OnCheckBox2
{
CMyDialog dlg;

int nRet = -1;
nRet = dlg.DoModal();

// Handle the return value from DoModal
switch ( nRet )
{
case -1:
AfxMessageBox("Dialog box could not be created!");
break;
case IDOK:
{
..code...
break;
}
case IDABORT:
{
OnCheckBox1();
break;
}
case IDCANCEL:
{
OnCheckBox1();
break;
}
default:
break;
};
}

void CCheckBox::OnCheckBox1()
{
CheckRadioButton(IDC_RADIO1, IDC_RADIO3, IDC_RADIO1);
}
GeneralRe: dialog box constantly reappearing Pin
valikac30-Jun-04 14:54
valikac30-Jun-04 14:54 
GeneralRe: dialog box constantly reappearing Pin
elephantstar1-Jul-04 7:23
elephantstar1-Jul-04 7:23 
GeneralRe: dialog box constantly reappearing Pin
rw1041-Jul-04 2:08
rw1041-Jul-04 2:08 
GeneralRe: dialog box constantly reappearing Pin
elephantstar6-Jul-04 11:37
elephantstar6-Jul-04 11:37 
Questionhow to minimize all windows Pin
5iveboy30-Jun-04 13:13
5iveboy30-Jun-04 13:13 
AnswerRe: how to minimize all windows Pin
palbano30-Jun-04 13:27
palbano30-Jun-04 13:27 
GeneralShellExecute question Pin
5iveboy30-Jun-04 13:10
5iveboy30-Jun-04 13:10 
GeneralRe: ShellExecute question Pin
palbano30-Jun-04 13:16
palbano30-Jun-04 13:16 
General!UPDATED! Debug works but release crashes (this one's tricky) Pin
boxmonkey30-Jun-04 10:59
boxmonkey30-Jun-04 10:59 
GeneralRe: Debug works but release crashes (this one's tricky) Pin
Roger Allen30-Jun-04 11:41
Roger Allen30-Jun-04 11:41 
GeneralRe: Debug works but release crashes (this one's tricky) Pin
boxmonkey30-Jun-04 12:10
boxmonkey30-Jun-04 12:10 
GeneralRe: Debug works but release crashes (this one's tricky) Pin
PJ Arends30-Jun-04 11:55
professionalPJ Arends30-Jun-04 11:55 
GeneralRe: Debug works but release crashes (this one's tricky) Pin
boxmonkey30-Jun-04 12:10
boxmonkey30-Jun-04 12:10 
GeneralRe: !UPDATED! Debug works but release crashes (this one's tricky) Pin
Yawar Maajed30-Jun-04 13:16
Yawar Maajed30-Jun-04 13:16 
GeneralRe: !UPDATED! Debug works but release crashes (this one's tricky) Pin
Yawar Maajed30-Jun-04 13:22
Yawar Maajed30-Jun-04 13:22 
GeneralRe: !UPDATED! Debug works but release crashes (this one's tricky) Pin
boxmonkey30-Jun-04 13:38
boxmonkey30-Jun-04 13:38 
GeneralRe: !UPDATED! Debug works but release crashes (this one's tricky) Pin
Yawar Maajed30-Jun-04 13:40
Yawar Maajed30-Jun-04 13:40 

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.