Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondouble casting Pin
Hadi Dayvary1-Jan-07 1:43
professionalHadi Dayvary1-Jan-07 1:43 
AnswerRe: double casting Pin
Gary R. Wheeler1-Jan-07 4:33
Gary R. Wheeler1-Jan-07 4:33 
Question"friend" class question Pin
eli150219791-Jan-07 1:04
eli150219791-Jan-07 1:04 
AnswerRe: "friend" class question Pin
Polity4h1-Jan-07 4:10
Polity4h1-Jan-07 4:10 
QuestionData Exchange Pin
Shouvik Das1-Jan-07 0:16
Shouvik Das1-Jan-07 0:16 
AnswerRe: Data Exchange Pin
PJ Arends1-Jan-07 7:48
professionalPJ Arends1-Jan-07 7:48 
GeneralRe: Data Exchange Pin
Shouvik Das1-Jan-07 16:42
Shouvik Das1-Jan-07 16:42 
GeneralRe: Data Exchange Pin
Cristian Amarie2-Jan-07 3:58
Cristian Amarie2-Jan-07 3:58 
shouvik.d wrote:
No i cant let a user access the SDI window when he/she is accessing the Dlg Box.


Disable the SDI window while the dialog box is active. MFC simulates modal dialog boxes exactly in this way, creating a modeless dialog box from template, disabling main window if any, display the dialog, and reenable the main window after.

Another possibility is to inform application from the modal dialog to perform the update.
This way you don't have to wait the dialog to close, such as in
void CDlg::OnButtonClicked()
{
  // gather data to update in a structure or class
  CData data;
  // ...

  static_cast<CSDIApp *>(AfxGetApp())->updateDatabase(&data);
}

and
void CSDIApp::updateDatabase(CData *pData)
{
  // update in database using pData members
}

GeneralRe: Data Exchange Pin
Shouvik Das2-Jan-07 17:49
Shouvik Das2-Jan-07 17:49 
GeneralRe: Data Exchange Pin
Cristian Amarie2-Jan-07 20:42
Cristian Amarie2-Jan-07 20:42 
GeneralRe: Data Exchange Pin
Shouvik Das1-Jan-07 19:06
Shouvik Das1-Jan-07 19:06 
GeneralRe: Data Exchange Pin
PJ Arends2-Jan-07 5:39
professionalPJ Arends2-Jan-07 5:39 
GeneralRe: Data Exchange Pin
Shouvik Das2-Jan-07 17:51
Shouvik Das2-Jan-07 17:51 
GeneralRe: Data Exchange Pin
PJ Arends2-Jan-07 21:10
professionalPJ Arends2-Jan-07 21:10 
GeneralRe: Data Exchange Pin
Shouvik Das2-Jan-07 3:59
Shouvik Das2-Jan-07 3:59 
GeneralRe: Data Exchange Pin
Cristian Amarie3-Jan-07 8:12
Cristian Amarie3-Jan-07 8:12 
QuestionSending mails in VC++ Pin
Syamlal S Nair1-Jan-07 0:09
Syamlal S Nair1-Jan-07 0:09 
AnswerRe: Sending mails in VC++ Pin
PJ Arends1-Jan-07 8:01
professionalPJ Arends1-Jan-07 8:01 
GeneralRe: Sending mails in VC++ Pin
Syamlal S Nair1-Jan-07 17:37
Syamlal S Nair1-Jan-07 17:37 
AnswerRe: Sending mails in VC++ Pin
Hamid_RT1-Jan-07 17:22
Hamid_RT1-Jan-07 17:22 
GeneralRe: Sending mails in VC++ Pin
Syamlal S Nair1-Jan-07 17:37
Syamlal S Nair1-Jan-07 17:37 
QuestionHow to display progress bar in the list view control in win32 Pin
amitmistry_petlad 31-Dec-06 23:00
amitmistry_petlad 31-Dec-06 23:00 
AnswerRe: How to display progress bar in the list view control in win32 Pin
Mark Salsbery1-Jan-07 9:28
Mark Salsbery1-Jan-07 9:28 
GeneralRe: How to display progress bar in the list view control in win32 Pin
amitmistry_petlad 1-Jan-07 17:03
amitmistry_petlad 1-Jan-07 17:03 
QuestionPrevent ofstream from making same strings [modified] Pin
dellthinker31-Dec-06 16:50
dellthinker31-Dec-06 16: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.