Click here to Skip to main content
15,844,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Building a WCHAR Array, Not sure if it right Pin
Mark Salsbery11-Nov-11 8:51
Mark Salsbery11-Nov-11 8:51 
GeneralRe: Building a WCHAR Array, Not sure if it right Pin
jkirkerx11-Nov-11 9:12
professionaljkirkerx11-Nov-11 9:12 
AnswerRe: Building a WCHAR Array, Not sure if it right Pin
Richard MacCutchan11-Nov-11 23:48
mveRichard MacCutchan11-Nov-11 23:48 
GeneralRe: Building a WCHAR Array, Not sure if it right Pin
jkirkerx12-Nov-11 8:01
professionaljkirkerx12-Nov-11 8:01 
GeneralRe: Building a WCHAR Array, Not sure if it right Pin
jkirkerx12-Nov-11 10:17
professionaljkirkerx12-Nov-11 10:17 
GeneralRe: Building a WCHAR Array, Not sure if it right Pin
Richard MacCutchan12-Nov-11 22:36
mveRichard MacCutchan12-Nov-11 22:36 
AnswerRe: Building a WCHAR Array, Not sure if it right Pin
David Crow14-Nov-11 3:39
David Crow14-Nov-11 3:39 
QuestionVC 6.0 MFC MDI new frame / view without caption erases Windows → New titles Pin
Vaclav_11-Nov-11 4:09
Vaclav_11-Nov-11 4:09 
This code removes the caption from the frame, however, it also removes all the title data from the Window – New view, only the number of the new window is there, but the document string (title) does not change.

strTitle = pDocument->GetTitle();
DWORD style = pFrame->GetStyle();
pFrame->ModifyStyle(style,WS_CHILD | WS_THICKFRAME ); // remove all , and no caption
strTitle = pDocument->GetTitle();

How do I access the standard Windows menu to put the title back in ?

As always, your help is appreciated.

Thanks Vaclav

I have modified
pFrame->ModifyStyle(WS_CAPTION,NULL);
It keeps the menu document title, but Window tiling does not work wihtout the caption. No surprise here.
I do not need tiling anyway.

I am still looking for ways to replace the New view "serial number " with
title preferably from menu.

-- modified 13-Nov-11 7:35am.
AnswerRe: VC 6.0 MFC MDI new frame / view without caption erases Windows → New titles Pin
Richard MacCutchan11-Nov-11 6:27
mveRichard MacCutchan11-Nov-11 6:27 
GeneralRe: VC 6.0 MFC MDI new frame / view without caption erases Windows → New titles Pin
Vaclav_11-Nov-11 7:09
Vaclav_11-Nov-11 7:09 
GeneralRe: VC 6.0 MFC MDI new frame / view without caption erases Windows → New titles Pin
Richard MacCutchan11-Nov-11 7:38
mveRichard MacCutchan11-Nov-11 7:38 
QuestionBeginner with C++ - Need helps with overload member function error Pin
LongDuyTran10-Nov-11 20:21
LongDuyTran10-Nov-11 20:21 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Chuck O'Toole10-Nov-11 21:30
Chuck O'Toole10-Nov-11 21:30 
GeneralRe: Beginner with C++ - Need helps with overload member function error Pin
LongDuyTran11-Nov-11 3:19
LongDuyTran11-Nov-11 3:19 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Chuck O'Toole11-Nov-11 5:41
Chuck O'Toole11-Nov-11 5:41 
GeneralRe: Beginner with C++ - Need helps with overload member function error Pin
krmed11-Nov-11 8:05
krmed11-Nov-11 8:05 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Stefan_Lang11-Nov-11 3:17
Stefan_Lang11-Nov-11 3:17 
QuestionWindows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 8:55
sdancer7510-Nov-11 8:55 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 9:35
professionalRichard Andrew x6410-Nov-11 9:35 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 10:26
sdancer7510-Nov-11 10:26 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 10:29
professionalRichard Andrew x6410-Nov-11 10:29 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 22:51
sdancer7510-Nov-11 22:51 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chris Losinger10-Nov-11 9:36
professionalChris Losinger10-Nov-11 9:36 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 10:29
sdancer7510-Nov-11 10:29 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chris Losinger10-Nov-11 11:03
professionalChris Losinger10-Nov-11 11: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.