Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: just a question... Pin
roel5-Aug-01 12:05
roel5-Aug-01 12:05 
GeneralRe: just a question... Pin
Christian Graus5-Aug-01 13:44
protectorChristian Graus5-Aug-01 13:44 
GeneralRe: just a question... Pin
roel5-Aug-01 14:14
roel5-Aug-01 14:14 
GeneralRe: just a question... Pin
Christian Graus5-Aug-01 14:18
protectorChristian Graus5-Aug-01 14:18 
GeneralRe: just a question... Pin
Paolo Messina6-Aug-01 11:34
professionalPaolo Messina6-Aug-01 11:34 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 
GeneralRe: just a question... Pin
Christian Graus5-Aug-01 16:34
protectorChristian Graus5-Aug-01 16:34 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 17:08
Todd Smith5-Aug-01 17:08 
Using ATL (IDD = IDD_MYDIALOG), yes. Otherwise you have to call CreateDialog and pass in the resource ID.

HWND CreateDialog(
  HINSTANCE hInstance,  // handle to application instance
  LPCTSTR lpTemplate,   // identifies dialog box template name
  HWND hWndParent,      // handle to owner window
  DLGPROC lpDialogFunc  // pointer to dialog box procedure
);
 
lpTemplate 
Identifies the dialog box template. This parameter is either the pointer to a null-terminated character string that specifies the name of the dialog box template or an integer value that specifies the resource identifier of the dialog box template. If the parameter specifies a resource identifier, its high-order word must be zero and its low-order word must contain the identifier. You can use the MAKEINTRESOURCE macro to create this value. 


And the tricky part is to call IsDialogMessage in the message loop if you're main window is a dialog.
GeneralRe: just a question... Pin
roel5-Aug-01 21:25
roel5-Aug-01 21:25 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 
GeneralRe: just a question... Pin
Kuniva5-Aug-01 22:41
Kuniva5-Aug-01 22:41 
GeneralStrings Pin
Peter Liddle5-Aug-01 4:45
Peter Liddle5-Aug-01 4:45 
GeneralRe: Strings Pin
Paolo Messina5-Aug-01 5:58
professionalPaolo Messina5-Aug-01 5:58 
GeneralMFC doc/view Pin
Wim Jans5-Aug-01 4:08
Wim Jans5-Aug-01 4:08 
GeneralRe: MFC doc/view Pin
Frank Deo5-Aug-01 4:24
Frank Deo5-Aug-01 4:24 
GeneralRe: MFC doc/view Pin
Michael Dunn5-Aug-01 8:16
sitebuilderMichael Dunn5-Aug-01 8:16 
GeneralRe: MFC doc/view Pin
Wim Jans5-Aug-01 11:05
Wim Jans5-Aug-01 11:05 
GeneralRe: MFC doc/view Pin
Frank Deo5-Aug-01 12:38
Frank Deo5-Aug-01 12:38 
GeneralRe: MFC doc/view Pin
Wim Jans5-Aug-01 21:21
Wim Jans5-Aug-01 21:21 
Generalfinding a string in a CString Pin
5-Aug-01 3:02
suss5-Aug-01 3:02 
GeneralRe: finding a string in a CString Pin
Steve Maier5-Aug-01 3:47
professionalSteve Maier5-Aug-01 3:47 
GeneralRe: finding a string in a CString Pin
Baafie5-Aug-01 3:51
Baafie5-Aug-01 3:51 
GeneralRe: finding a string in a CString Pin
Baafie5-Aug-01 3:51
Baafie5-Aug-01 3:51 
GeneralRe: finding a string in a CString Pin
#realJSOP5-Aug-01 5:02
professional#realJSOP5-Aug-01 5:02 

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.