Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldsp-file for Visual Studio 6.0 Pin
Reinhold442-Dec-04 11:01
Reinhold442-Dec-04 11:01 
Generalkilled for free std::string, Help please. I will give rate Pin
LongIsland2-Dec-04 10:48
LongIsland2-Dec-04 10:48 
GeneralRe: killed for free std::string, Help please. I will give rate Pin
John R. Shaw2-Dec-04 15:08
John R. Shaw2-Dec-04 15:08 
GeneralRe: killed for free std::string, Help please. I will give rate Pin
Maximilien2-Dec-04 16:19
Maximilien2-Dec-04 16:19 
Generalremoving the Main Frame title bar in a SDI Pin
kdehairy2-Dec-04 10:42
kdehairy2-Dec-04 10:42 
GeneralRe: removing the Main Frame title bar in a SDI Pin
David Crow2-Dec-04 10:45
David Crow2-Dec-04 10:45 
GeneralRe: removing the Main Frame title bar in a SDI Pin
kdehairy2-Dec-04 10:54
kdehairy2-Dec-04 10:54 
GeneralRe: removing the Main Frame title bar in a SDI Pin
Graham Bradshaw2-Dec-04 11:03
Graham Bradshaw2-Dec-04 11:03 
As luck would have it, I'm working on an application that does exactly that. Happy to share...

All code is in the CFrameWnd derived class.

to remove the menu and title bar:

// remove and destroy the old menu<br />
SetMenu(NULL);<br />
::DestroyMenu(m_hMenuDefault);<br />
m_hMenuDefault = NULL;<br />
<br />
// remove the title bar<br />
ModifyStyle(WS_CAPTION, 0);


to put them back:

// restore the title bar<br />
ModifyStyle(0, WS_CAPTION);<br />
<br />
// recreate the menu<br />
CMenu menu;<br />
<br />
menu.LoadMenu(IDR_MAINFRAME);<br />
SetMenu(&menu);<br />
m_hMenuDefault = menu.GetSafeHmenu();

GeneralRe: removing the Main Frame title bar in a SDI Pin
kdehairy2-Dec-04 22:08
kdehairy2-Dec-04 22:08 
GeneralWhy this code alway crash my app?Need help. Pin
Teerayoot2-Dec-04 9:47
Teerayoot2-Dec-04 9:47 
GeneralRe: Why this code alway crash my app?Need help. Pin
David Crow2-Dec-04 10:26
David Crow2-Dec-04 10:26 
GeneralRe: Why this code alway crash my app?Need help. Pin
Teerayoot3-Dec-04 2:26
Teerayoot3-Dec-04 2:26 
GeneralRe: Why this code alway crash my app?Need help. Pin
David Crow3-Dec-04 3:25
David Crow3-Dec-04 3:25 
GeneralRe: Why this code alway crash my app?Need help. Pin
Teerayoot3-Dec-04 4:48
Teerayoot3-Dec-04 4:48 
GeneralCompilation Times in VS C++ .NET Pin
haggersr2-Dec-04 8:17
haggersr2-Dec-04 8:17 
Generalresizing dialog box Pin
haseeb_saeed2-Dec-04 8:05
haseeb_saeed2-Dec-04 8:05 
GeneralRe: resizing dialog box Pin
kdehairy2-Dec-04 10:37
kdehairy2-Dec-04 10:37 
GeneralRe: resizing dialog box Pin
haseeb_saeed3-Dec-04 3:01
haseeb_saeed3-Dec-04 3:01 
GeneralRe: resizing dialog box Pin
John R. Shaw2-Dec-04 16:06
John R. Shaw2-Dec-04 16:06 
GeneralRe: resizing dialog box Pin
haseeb_saeed3-Dec-04 3:03
haseeb_saeed3-Dec-04 3:03 
GeneralProblem Redrawing Screen Pin
doctorpi2-Dec-04 7:39
doctorpi2-Dec-04 7:39 
GeneralCStringArray Pin
LeeeNN2-Dec-04 6:51
LeeeNN2-Dec-04 6:51 
GeneralRe: CStringArray Pin
Maximilien2-Dec-04 7:03
Maximilien2-Dec-04 7:03 
GeneralRe: CStringArray Pin
BlackDice2-Dec-04 7:53
BlackDice2-Dec-04 7:53 
GeneralRe: CStringArray Pin
BlackDice2-Dec-04 7:54
BlackDice2-Dec-04 7:54 

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.