Click here to Skip to main content
15,907,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CScrollView Help Pin
VanHlebar10-Sep-03 8:32
VanHlebar10-Sep-03 8:32 
GeneralCreating a Modal Dialog before calling DoModal() Pin
ohadp10-Sep-03 0:39
ohadp10-Sep-03 0:39 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
vcplusplus10-Sep-03 1:45
vcplusplus10-Sep-03 1:45 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
ohadp10-Sep-03 1:47
ohadp10-Sep-03 1:47 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
Ryan Binns10-Sep-03 3:10
Ryan Binns10-Sep-03 3:10 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
Member 42425910-Sep-03 3:19
Member 42425910-Sep-03 3:19 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
ohadp10-Sep-03 4:23
ohadp10-Sep-03 4:23 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
Alvaro Mendez10-Sep-03 8:52
Alvaro Mendez10-Sep-03 8:52 
I don't have the exact code, but you can do something like this:

CMyDlg dlg = this;
 
// Create it modeless
dlg.Create(dlg.IDD);
 
// Get your HWND
HWND hWnd = dlg.m_hWnd
 
// Modalize it
EnableWindow(FALSE);      // disable parent
dlg.CenterWindow();       // center dlg
dlg.ShowWindow(SW_SHOW);  // show dlg
int nResult = dlg.RunModalLoop(MLF_SHOWONIDLE);  // wait for it close
dlg.DestroyWindow();     // destroy dlg
EnableWindow(TRUE);      // reenable parent


You can also check out MFC's code for DoModal.

Regards,
Alvaro


Hey! It compiles! Ship it.
QuestionHow to get places of memory leaks in ATL ? Pin
vgrigor10-Sep-03 0:35
vgrigor10-Sep-03 0:35 
Generalsocket recv(); please help Pin
thes3cr3t19-Sep-03 23:56
thes3cr3t19-Sep-03 23:56 
GeneralRe: socket recv(); please help Pin
CodeBrain10-Sep-03 3:04
CodeBrain10-Sep-03 3:04 
GeneralRe: socket recv(); please help Pin
thes3cr3t110-Sep-03 6:32
thes3cr3t110-Sep-03 6:32 
GeneralRe: socket recv(); please help Pin
CodeBrain10-Sep-03 8:20
CodeBrain10-Sep-03 8:20 
GeneralRe: socket recv(); please help Pin
thes3cr3t111-Sep-03 4:31
thes3cr3t111-Sep-03 4:31 
GeneralObject persistance in a relationnal database Pin
Jerome Conus9-Sep-03 23:35
Jerome Conus9-Sep-03 23:35 
GeneralRe: Object persistance in a relationnal database Pin
basementman10-Sep-03 12:29
basementman10-Sep-03 12:29 
GeneralRe: Object persistance in a relationnal database Pin
Jerome Conus10-Sep-03 19:03
Jerome Conus10-Sep-03 19:03 
GeneralRe: Object persistance in a relationnal database Pin
basementman11-Sep-03 4:23
basementman11-Sep-03 4:23 
Generalusing stringtokenizer in c++ Pin
Member 1609889-Sep-03 22:43
Member 1609889-Sep-03 22:43 
GeneralRe: using stringtokenizer in c++ Pin
Ravi Bhavnani9-Sep-03 22:56
professionalRavi Bhavnani9-Sep-03 22:56 
GeneralRe: using stringtokenizer in c++ Pin
Bernhard9-Sep-03 23:01
Bernhard9-Sep-03 23:01 
GeneralRe: using stringtokenizer in c++ Pin
Member 1609889-Sep-03 23:03
Member 1609889-Sep-03 23:03 
GeneralRe: using stringtokenizer in c++ Pin
Bernhard9-Sep-03 23:04
Bernhard9-Sep-03 23:04 
GeneralRe: using stringtokenizer in c++ Pin
Jagadeesh VN9-Sep-03 23:09
Jagadeesh VN9-Sep-03 23:09 
GeneralRe: using stringtokenizer in c++ Pin
Jagadeesh VN9-Sep-03 23:10
Jagadeesh VN9-Sep-03 23:10 

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.