Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Check if an document is already open Pin
_Flaviu4-Oct-11 23:35
_Flaviu4-Oct-11 23:35 
AnswerRe: Check if an document is already open Pin
App_4-Oct-11 23:32
App_4-Oct-11 23:32 
GeneralRe: Check if an document is already open Pin
_Flaviu4-Oct-11 23:40
_Flaviu4-Oct-11 23:40 
GeneralRe: Check if an document is already open Pin
Snorri Kristjansson4-Oct-11 23:56
professionalSnorri Kristjansson4-Oct-11 23:56 
AnswerRe: Check if an document is already open Pin
Snorri Kristjansson5-Oct-11 0:02
professionalSnorri Kristjansson5-Oct-11 0:02 
GeneralRe: Check if an document is already open Pin
_Flaviu9-Oct-11 6:52
_Flaviu9-Oct-11 6:52 
QuestionWindow or form clarification -nomenclature Pin
jkirkerx4-Oct-11 13:59
professionaljkirkerx4-Oct-11 13:59 
AnswerRe: Window or form clarification -nomenclature Pin
enhzflep4-Oct-11 18:56
enhzflep4-Oct-11 18:56 
If I understand you correctly, I see no reason for such windows to be MDI - it doesn't quite seem to make sense to me. I can't think of an example of an app that gives a constantly updated Installation status via an MDI child - they're always just a pop-up, child window or a Modal dialog.

Being just a window, I'd be inclined to create them all as resources and pull them out from the resource section & run them using
DialogBox(hInstance, MAKEINTRESOURCE(DLG_MAIN), NULL, (DLGPROC)DialogProc);


On account of the ease of generating a window in a resource editor is often considerably easier, quicker and often more easily maintainable than hard-coding all of the controls onto each window.

ResEdit is free and will create dialogs - allowing you to save as an RC file or showing the equivalent C code needed to create the same dialog. I often copy and paste this code. Since it allows me to develop an app with the same ease as drawing up a dialog in a resource editor, while still giving me access to the more powerful WindowProcedure, rather than DialogPocedure. (Can only return true/false from a DialogProc - precluding all matter of extra functionality)
GeneralRe: Window or form clarification -nomenclature Pin
jkirkerx5-Oct-11 6:21
professionaljkirkerx5-Oct-11 6:21 
AnswerRe: Window or form clarification -nomenclature Pin
ThatsAlok4-Oct-11 20:59
ThatsAlok4-Oct-11 20:59 
GeneralRe: Window or form clarification -nomenclature Pin
jkirkerx5-Oct-11 6:15
professionaljkirkerx5-Oct-11 6:15 
QuestionEntering ? into edit box Pin
Vaclav_4-Oct-11 12:28
Vaclav_4-Oct-11 12:28 
AnswerRe: Entering ? into edit box Pin
Richard Andrew x644-Oct-11 14:46
professionalRichard Andrew x644-Oct-11 14:46 
GeneralRe: Entering ? into edit box Pin
Vaclav_4-Oct-11 15:47
Vaclav_4-Oct-11 15:47 
GeneralRe: Entering ? into edit box Pin
Richard Andrew x644-Oct-11 15:50
professionalRichard Andrew x644-Oct-11 15:50 
GeneralRe: Entering ? into edit box SOLVED Pin
Vaclav_4-Oct-11 16:37
Vaclav_4-Oct-11 16:37 
GeneralRe: Entering ? into edit box SOLVED Pin
Richard Andrew x644-Oct-11 16:38
professionalRichard Andrew x644-Oct-11 16:38 
GeneralRe: Entering ? into edit box Pin
Chuck O'Toole4-Oct-11 16:15
Chuck O'Toole4-Oct-11 16:15 
Questionhow to move button when the dialog is resized? Pin
antonio3434-Oct-11 7:29
antonio3434-Oct-11 7:29 
AnswerRe: how to move button when the dialog is resized? Pin
Maximilien4-Oct-11 8:02
Maximilien4-Oct-11 8:02 
GeneralRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 8:17
antonio3434-Oct-11 8:17 
GeneralRe: how to move button when the dialog is resized? Pin
Maximilien4-Oct-11 8:22
Maximilien4-Oct-11 8:22 
GeneralRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 8:45
antonio3434-Oct-11 8:45 
QuestionRe: how to move button when the dialog is resized? Pin
David Crow4-Oct-11 8:54
David Crow4-Oct-11 8:54 
AnswerRe: how to move button when the dialog is resized? Pin
antonio3434-Oct-11 9:04
antonio3434-Oct-11 9:04 

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.