Click here to Skip to main content
15,908,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to read bytes from winsock efficiently Pin
chandu0042-Oct-07 2:45
chandu0042-Oct-07 2:45 
AnswerRe: How to read bytes from winsock efficiently Pin
Mark Salsbery1-Oct-07 20:10
Mark Salsbery1-Oct-07 20:10 
AnswerRe: How to read bytes from winsock efficiently (Problem SOLVED) Pin
Ontanggabe Parulian1-Oct-07 20:44
Ontanggabe Parulian1-Oct-07 20:44 
GeneralRe: How to read bytes from winsock efficiently (Problem SOLVED) Pin
Mark Salsbery2-Oct-07 5:04
Mark Salsbery2-Oct-07 5:04 
JokeRe: How to read bytes from winsock efficiently Pin
Moak9-Nov-07 1:25
Moak9-Nov-07 1:25 
QuestionAnyone know how to make something "auto-hide" ? Pin
USAFHokie801-Oct-07 14:07
USAFHokie801-Oct-07 14:07 
AnswerRe: Anyone know how to make something "auto-hide" ? Pin
Hamid_RT1-Oct-07 19:35
Hamid_RT1-Oct-07 19:35 
AnswerRe: Anyone know how to make something "auto-hide" ? Pin
Nelek1-Oct-07 21:42
protectorNelek1-Oct-07 21:42 
You can always try to set the window style to WS_MINIMIZE or WS_HIDE by masking the actual style and adding it.

Where to find that message depends on which project you have. CChildFrame::PreCreateWindow () if the project is MDI, CMainFrame::PreCreateWindow () if the project is SDI or CMyApp::OnInitInstance () if it is not using Doc/View.

for CMainFrame and CChildFrame:
{	if( !CMDIChildWnd::PreCreateWindow(cs) )
		return FALSE;

	cs.style = WS_SYSMENU | WS_CAPTION | WS_OVERLAPPED | WS_MINIMIZE;  //or the combination u want

	cs.lpszName = m_pDoc->m_szNewFrameName;
	
	return TRUE;
}


for CMyApp
BOOL CMyApp::InitInstance()
{
	//Some code

	// Main-MDI-Rahmenfenster erzeugen
	CMainFrame* pMainFrame = new CMainFrame;
	if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
		return FALSE;
	m_pMainWnd = pMainFrame;

	//More code

	// Das Hauptfenster ist initialisiert und kann jetzt angezeigt und aktualisiert werden.
	pMainFrame->ShowWindow(m_nCmdShow | SW_SHOWMINIMIZED); // I actually use it with SW_MAXIMIZED in a MDI
	pMainFrame->UpdateWindow();

	return TRUE;
}


Hope it helps.

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

QuestionRe: Anyone know how to make something "auto-hide" ? Pin
David Crow2-Oct-07 2:34
David Crow2-Oct-07 2:34 
AnswerRe: Anyone know how to make something "auto-hide" ? Pin
USAFHokie802-Oct-07 12:19
USAFHokie802-Oct-07 12:19 
QuestionFlicker free painting with PNG images Pin
Leslie Sanford1-Oct-07 11:04
Leslie Sanford1-Oct-07 11:04 
AnswerRe: Flicker free painting with PNG images Pin
Mark Salsbery1-Oct-07 12:07
Mark Salsbery1-Oct-07 12:07 
GeneralRe: Flicker free painting with PNG images [modified][solved] Pin
Leslie Sanford1-Oct-07 12:51
Leslie Sanford1-Oct-07 12:51 
GeneralRe: Flicker free painting with PNG images [modified][solved] Pin
Mark Salsbery2-Oct-07 5:12
Mark Salsbery2-Oct-07 5:12 
Questionpragma optimization question. Pin
Maximilien1-Oct-07 7:52
Maximilien1-Oct-07 7:52 
AnswerRe: pragma optimization question. Pin
Chris Losinger1-Oct-07 8:05
professionalChris Losinger1-Oct-07 8:05 
GeneralRe: pragma optimization question. Pin
Maximilien1-Oct-07 8:50
Maximilien1-Oct-07 8:50 
QuestionDeclaring Objects with Default Constructor Pin
Yadrif1-Oct-07 7:05
Yadrif1-Oct-07 7:05 
AnswerRe: Declaring Objects with Default Constructor Pin
Nemanja Trifunovic1-Oct-07 7:18
Nemanja Trifunovic1-Oct-07 7:18 
GeneralRe: Declaring Objects with Default Constructor Pin
Yadrif1-Oct-07 7:26
Yadrif1-Oct-07 7:26 
AnswerRe: Declaring Objects with Default Constructor Pin
Sameerkumar Namdeo1-Oct-07 16:51
Sameerkumar Namdeo1-Oct-07 16:51 
QuestionICCompress key frames on MP42 Pin
od@ananzi.co.za1-Oct-07 6:42
od@ananzi.co.za1-Oct-07 6:42 
Questionstatic objects in classes Pin
cherii1-Oct-07 5:22
cherii1-Oct-07 5:22 
AnswerRe: static objects in classes Pin
Mark Salsbery1-Oct-07 5:26
Mark Salsbery1-Oct-07 5:26 
GeneralRe: static objects in classes Pin
cherii1-Oct-07 5:42
cherii1-Oct-07 5:42 

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.