Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating a toolbar in a console application Pin
Mark Salsbery1-Aug-08 8:29
Mark Salsbery1-Aug-08 8:29 
QuestionTrack the amount of data transferred while I am on net, both sent and recieved. Pin
vicky0000031-Jul-08 19:12
vicky0000031-Jul-08 19:12 
AnswerRe: Track the amount of data transferred while I am on net, both sent and recieved. Pin
Haroon Sarwar31-Jul-08 19:26
Haroon Sarwar31-Jul-08 19:26 
QuestionRe: Track the amount of data transferred while I am on net, both sent and recieved. Pin
David Crow1-Aug-08 3:26
David Crow1-Aug-08 3:26 
Questionsave excel file Pin
gentleguy31-Jul-08 18:06
gentleguy31-Jul-08 18:06 
AnswerRe: save excel file Pin
emimmortal31-Jul-08 18:20
emimmortal31-Jul-08 18:20 
AnswerRe: save excel file Pin
FloatingMarc31-Jul-08 20:18
FloatingMarc31-Jul-08 20:18 
QuestionWhen click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
fantasy121531-Jul-08 16:03
fantasy121531-Jul-08 16:03 
My goal:
when user click on the 'close' red check button on the right top most dialog, I want to hide the main dialog of the app, show an icon in the tray(these codes work fine, not showing).

My codes are below, It exits the app anyway.
BOOL CMyVIPTestDlg::PreTranslateMessage(MSG* pMsgIn) 
{
	if (pMsgIn->message == WM_SYSCOMMAND)
	{
		if (pMsgIn->wParam == SC_CLOSE)
		{
			this->ShowWindow(FALSE);
			return TRUE;
		}
	}
	
	BOOL bRet = CDialog::PreTranslateMessage(pMsgIn);
	return bRet;
}

AnswerRe: When click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
Mark Salsbery31-Jul-08 16:23
Mark Salsbery31-Jul-08 16:23 
GeneralRe: When click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
fantasy121531-Jul-08 17:09
fantasy121531-Jul-08 17:09 
GeneralRe: When click on the close button on the righttopmost dialog, how to hide the dialog not close the app? Pin
Mark Salsbery1-Aug-08 5:31
Mark Salsbery1-Aug-08 5:31 
Question#define statements Pin
MarkB77731-Jul-08 15:55
MarkB77731-Jul-08 15:55 
AnswerRe: #define statements Pin
Mark Salsbery31-Jul-08 16:13
Mark Salsbery31-Jul-08 16:13 
GeneralRe: #define statements Pin
MarkB77731-Jul-08 16:24
MarkB77731-Jul-08 16:24 
GeneralRe: #define statements Pin
Mark Salsbery31-Jul-08 16:30
Mark Salsbery31-Jul-08 16:30 
GeneralRe: #define statements Pin
CPallini31-Jul-08 21:17
mveCPallini31-Jul-08 21:17 
AnswerRe: #define statements Pin
David Crow1-Aug-08 3:18
David Crow1-Aug-08 3:18 
GeneralRe: #define statements Pin
MarkB7771-Aug-08 3:21
MarkB7771-Aug-08 3:21 
QuestionHow to hook the system events, such as shutoff? Pin
kcynic31-Jul-08 14:00
kcynic31-Jul-08 14:00 
AnswerRe: How to hook the system events, such as shutoff? Pin
Mark Salsbery31-Jul-08 15:25
Mark Salsbery31-Jul-08 15:25 
GeneralRe: How to hook the system events, such as shutoff? Pin
kcynic31-Jul-08 15:40
kcynic31-Jul-08 15:40 
GeneralRe: How to hook the system events, such as shutoff? Pin
Mark Salsbery31-Jul-08 15:48
Mark Salsbery31-Jul-08 15:48 
GeneralRe: How to hook the system events, such as shutoff? Pin
kcynic31-Jul-08 15:59
kcynic31-Jul-08 15:59 
GeneralRe: How to hook the system events, such as shutoff? Pin
Mark Salsbery31-Jul-08 16:08
Mark Salsbery31-Jul-08 16:08 
GeneralRe: How to hook the system events, such as shutoff? Pin
kcynic31-Jul-08 16:12
kcynic31-Jul-08 16:12 

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.