Click here to Skip to main content
15,925,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Change color of dialog border Pin
Hamid_RT19-Oct-06 8:39
Hamid_RT19-Oct-06 8:39 
QuestionUninstall VS2003 SP1? Pin
Todd Smith6-Oct-06 5:52
Todd Smith6-Oct-06 5:52 
AnswerRe: Uninstall VS2003 SP1? Pin
David Crow6-Oct-06 6:03
David Crow6-Oct-06 6:03 
GeneralRe: Uninstall VS2003 SP1? Pin
Todd Smith6-Oct-06 6:07
Todd Smith6-Oct-06 6:07 
QuestionRuntime change MDI/SDI Pin
Endaroza6-Oct-06 5:28
Endaroza6-Oct-06 5:28 
AnswerRe: Runtime change MDI/SDI Pin
led mike6-Oct-06 5:49
led mike6-Oct-06 5:49 
GeneralRe: Runtime change MDI/SDI Pin
Mark Salsbery6-Oct-06 5:52
Mark Salsbery6-Oct-06 5:52 
AnswerRe: Runtime change MDI/SDI Pin
Mark Salsbery6-Oct-06 6:03
Mark Salsbery6-Oct-06 6:03 
Is the resource ID valid when you call LoadFrame?

Do you need to be able to switch back and forth between MDI and SDI or just decide at startup?
If just at startup, you should be able to do this in InitInstance() of the app:

CFrameWnd *pFrameWnd = 0;

if (fUserWantsMDI)
    pFrameWnd = new CMainFrameMDI;
else
    pFrameWnd = new CMainFrameSDI;

if (!pFrameWnd)
    return FALSE;

m_pMainWnd = pFrameWnd;

// create main frame window
if (!pFrameWnd->LoadFrame(IDR_MAINFRAME))
    return FALSE;

GeneralRe: Runtime change MDI/SDI Pin
led mike6-Oct-06 7:15
led mike6-Oct-06 7:15 
GeneralRe: Runtime change MDI/SDI Pin
Mark Salsbery6-Oct-06 14:47
Mark Salsbery6-Oct-06 14:47 
AnswerRe: Runtime change MDI/SDI Pin
Andre xxxxxxx6-Oct-06 7:23
Andre xxxxxxx6-Oct-06 7:23 
AnswerRe: Runtime change MDI/SDI Pin
PJ Arends6-Oct-06 14:57
professionalPJ Arends6-Oct-06 14:57 
AnswerGOTCHA!!! Pin
Endaroza5-May-07 5:41
Endaroza5-May-07 5:41 
QuestionGetPixel Pin
Johpoke6-Oct-06 5:08
Johpoke6-Oct-06 5:08 
AnswerRe: GetPixel Pin
Mark Salsbery6-Oct-06 5:16
Mark Salsbery6-Oct-06 5:16 
GeneralRe: GetPixel Pin
Johpoke6-Oct-06 5:25
Johpoke6-Oct-06 5:25 
GeneralRe: GetPixel Pin
Mark Salsbery6-Oct-06 5:31
Mark Salsbery6-Oct-06 5:31 
GeneralRe: GetPixel Pin
Hamid_RT6-Oct-06 19:49
Hamid_RT6-Oct-06 19:49 
GeneralRe: GetPixel Pin
Mark Salsbery7-Oct-06 8:44
Mark Salsbery7-Oct-06 8:44 
QuestionProblem understanding image rotation. Pin
Mark F.6-Oct-06 4:39
Mark F.6-Oct-06 4:39 
AnswerRe: Problem understanding image rotation. Pin
Maximilien6-Oct-06 4:46
Maximilien6-Oct-06 4:46 
GeneralRe: Problem understanding image rotation. Pin
Mark F.6-Oct-06 4:48
Mark F.6-Oct-06 4:48 
GeneralRe: Problem understanding image rotation. Pin
Maximilien6-Oct-06 4:50
Maximilien6-Oct-06 4:50 
AnswerRe: Problem understanding image rotation. Pin
Stephen Hewitt6-Oct-06 21:02
Stephen Hewitt6-Oct-06 21:02 
QuestionEnumDisplaySettings Pin
viliam6-Oct-06 4:02
viliam6-Oct-06 4: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.