Click here to Skip to main content
15,890,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding an exe into resource in MFC Pin
toxcct6-Mar-08 22:30
toxcct6-Mar-08 22:30 
GeneralRe: Adding an exe into resource in MFC Pin
Hamid_RT9-Mar-08 1:03
Hamid_RT9-Mar-08 1:03 
GeneralRe: Adding an exe into resource in MFC Pin
Ernest Laurentin6-Mar-08 17:42
Ernest Laurentin6-Mar-08 17:42 
GeneralRe: Adding an exe into resource in MFC Pin
Hamid_RT9-Mar-08 1:04
Hamid_RT9-Mar-08 1:04 
GeneralSetRedraw(TRUE) causes a hide window to show Pin
followait6-Mar-08 17:05
followait6-Mar-08 17:05 
GeneralRe: SetRedraw(TRUE) causes a hide window to show Pin
Mark Salsbery6-Mar-08 17:54
Mark Salsbery6-Mar-08 17:54 
QuestionWhen to use Dialog for app and when to use normal Window ? Pin
Defenestration6-Mar-08 13:46
Defenestration6-Mar-08 13:46 
AnswerRe: When to use Dialog for app and when to use normal Window ? Pin
Mark Salsbery6-Mar-08 14:56
Mark Salsbery6-Mar-08 14:56 
Defenestration wrote:
What are the rules on when an app should be dialog-based and when it should be a normal window-based ?


I don't know about the rules, but it can be a lot easier to layout many controls
on a dialog resource than it is to create them manually at runtime for a window.

Defenestration wrote:
Can a dialog based app have a menu bar and toolbar ?


Yes  The menu you can add to the dialog resource. 
For toolbars, you can do it manually... for one example, see
DLGCBR32 Sample: Demonstrates Adding a Status Bar and Toolbar to Dialog Boxes[^]


If you use MFC, IMO the easiest method is to use a frame window for the main window and use
a modeless dialog as the client window (or you could even use a CFormView).  MFC handles window
decorations like toolbars and status bars and does the layout of the client window - makes it real
easy to code.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: When to use Dialog for app and when to use normal Window ? Pin
JudyL_MD7-Mar-08 1:54
JudyL_MD7-Mar-08 1:54 
QuestionHow does RtlpNumberOf work? Pin
Glenn Sandoval6-Mar-08 12:29
Glenn Sandoval6-Mar-08 12:29 
GeneralRe: How does RtlpNumberOf work? Pin
Randor 6-Mar-08 12:48
professional Randor 6-Mar-08 12:48 
GeneralRe: How does RtlpNumberOf work? Pin
Mark Salsbery6-Mar-08 12:52
Mark Salsbery6-Mar-08 12:52 
GeneralRe: How does RtlpNumberOf work? Pin
Mark Salsbery6-Mar-08 13:14
Mark Salsbery6-Mar-08 13:14 
AnswerRe: How does RtlpNumberOf work? [modified] Pin
Rajkumar R7-Mar-08 3:24
Rajkumar R7-Mar-08 3:24 
GeneralRe: How does RtlpNumberOf work? Pin
Glenn Sandoval7-Mar-08 4:59
Glenn Sandoval7-Mar-08 4:59 
GeneralCustom action DLL for Windows Installer Pin
act_x6-Mar-08 11:15
act_x6-Mar-08 11:15 
GeneralCrypto++ & FileSink newbie question Pin
soul7106-Mar-08 11:14
soul7106-Mar-08 11:14 
GeneralActiveX question Pin
AbbyIndian6-Mar-08 7:15
AbbyIndian6-Mar-08 7:15 
GeneralRe: ActiveX question Pin
Ernest Laurentin6-Mar-08 7:18
Ernest Laurentin6-Mar-08 7:18 
QuestionHow to place an ActiveX control on a dialog box of a DLL Pin
Deelip6-Mar-08 6:32
Deelip6-Mar-08 6:32 
AnswerRe: How to place an ActiveX control on a dialog box of a DLL Pin
Ernest Laurentin6-Mar-08 7:16
Ernest Laurentin6-Mar-08 7:16 
GeneralRe: How to place an ActiveX control on a dialog box of a DLL Pin
Deelip6-Mar-08 18:19
Deelip6-Mar-08 18:19 
GeneralDLL persistent storage "new" operator Pin
ForNow6-Mar-08 6:23
ForNow6-Mar-08 6:23 
QuestionRe: DLL persistent storage "new" operator Pin
CPallini6-Mar-08 21:32
mveCPallini6-Mar-08 21:32 
GeneralRe: DLL persistent storage "new" operator Pin
ForNow6-Mar-08 23:03
ForNow6-Mar-08 23:03 

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.