Click here to Skip to main content
16,008,469 members
Home / Discussions / Mobile
   

Mobile

 
Generalexport dialog-recource Pin
slomoman13-Oct-03 7:56
slomoman13-Oct-03 7:56 
GeneralRe: export dialog-recource Pin
João Paulo Figueira13-Oct-03 11:06
professionalJoão Paulo Figueira13-Oct-03 11:06 
Generaljpgs in pocketIE look crappy Pin
slomoman13-Oct-03 7:42
slomoman13-Oct-03 7:42 
Generalclose the MainFrame from a Child-Window Pin
slomoman13-Oct-03 7:34
slomoman13-Oct-03 7:34 
GeneralRe: close the MainFrame from a Child-Window Pin
João Paulo Figueira13-Oct-03 10:46
professionalJoão Paulo Figueira13-Oct-03 10:46 
GeneralRe: close the MainFrame from a Child-Window Pin
slomoman15-Oct-03 3:13
slomoman15-Oct-03 3:13 
GeneralRe: close the MainFrame from a Child-Window Pin
João Paulo Figueira15-Oct-03 3:24
professionalJoão Paulo Figueira15-Oct-03 3:24 
GeneralRe: close the MainFrame from a Child-Window Pin
slomoman15-Oct-03 5:37
slomoman15-Oct-03 5:37 
thx for the help-
the problem seems to be somewhere else. it also doesn't work if i try to do it the other way round, i.e. to close the dialog from the mainFrame. to e more detailed, it works in some cases, but most of the times after i worked a little bit in the dialog, my app crashes when trying to close both. probably, somewhere in my dialog i did not free memory or something like that...

here's some of my code anyway:
I have a PPC app that start and shows a modeless dialog:
Code:

//in MainFrame.h:
CComPortDlg* m_pDlg;
//in MainFrame.cpp:
CMainFrame::CMainFrame(){
m_pDlg = new CComPortDlg;
}

//when clicking menu-entry "End":
if(this->m_pDlg->m_hWnd != NULL){
this->m_pDlg->ShowWindow(SW_HIDE);
this->m_pDlg->DestroyWindow(); //close dialog
//the destroyWindow() usually take VERY long and makes the whole PDA crash...
}
SendMessage(WM_CLOSE,0,0); //close mainframe

//in Destructor:
CMainFrame::~CMainFrame(){
delete m_pDlg;
}


is this the right way to deal with modeless dialogs?


thx, Daniel
GeneralOn Wakup: Determine if Password and/or User Information Dialog ist closed... Pin
User-37793613-Oct-03 6:56
User-37793613-Oct-03 6:56 
Generalload a html-file from file Pin
slomoman10-Oct-03 7:02
slomoman10-Oct-03 7:02 
GeneralRe: load a html-file from file Pin
João Paulo Figueira10-Oct-03 8:00
professionalJoão Paulo Figueira10-Oct-03 8:00 
GeneralRe: load a html-file from file Pin
slomoman10-Oct-03 8:19
slomoman10-Oct-03 8:19 
GeneralRe: load a html-file from file Pin
João Paulo Figueira10-Oct-03 10:52
professionalJoão Paulo Figueira10-Oct-03 10:52 
GeneralREALLY close an application Pin
slomoman10-Oct-03 3:19
slomoman10-Oct-03 3:19 
GeneralRe: REALLY close an application Pin
João Paulo Figueira10-Oct-03 3:26
professionalJoão Paulo Figueira10-Oct-03 3:26 
GeneralRe: REALLY close an application Pin
slomoman16-Oct-03 6:18
slomoman16-Oct-03 6:18 
GeneralRe: REALLY close an application Pin
João Paulo Figueira16-Oct-03 6:42
professionalJoão Paulo Figueira16-Oct-03 6:42 
GeneralRe: REALLY close an application Pin
slomoman16-Oct-03 6:50
slomoman16-Oct-03 6:50 
GeneralRe: REALLY close an application Pin
João Paulo Figueira16-Oct-03 8:44
professionalJoão Paulo Figueira16-Oct-03 8:44 
GeneralRe: REALLY close an application Pin
slomoman19-Oct-03 23:20
slomoman19-Oct-03 23:20 
GeneralRe: REALLY close an application Pin
slomoman20-Oct-03 3:37
slomoman20-Oct-03 3:37 
GeneralDialog instead of Document Pin
slomoman10-Oct-03 3:06
slomoman10-Oct-03 3:06 
Questionwhere does the emulator look for files? Pin
slomoman10-Oct-03 3:02
slomoman10-Oct-03 3:02 
AnswerRe: where does the emulator look for files? Pin
João Paulo Figueira10-Oct-03 3:13
professionalJoão Paulo Figueira10-Oct-03 3:13 
GeneralRe: where does the emulator look for files? Pin
slomoman10-Oct-03 7:49
slomoman10-Oct-03 7:49 

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.