Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat is ENSURE_THROW? [modified] Pin
DreamMengJian5-Oct-07 6:25
DreamMengJian5-Oct-07 6:25 
QuestionShowWindow Command Problems Pin
Beaon5-Oct-07 6:02
Beaon5-Oct-07 6:02 
AnswerRe: ShowWindow Command Problems Pin
IMNOOPR5-Oct-07 6:22
IMNOOPR5-Oct-07 6:22 
GeneralRe: ShowWindow Command Problems Pin
Beaon5-Oct-07 7:14
Beaon5-Oct-07 7:14 
QuestionRe: ShowWindow Command Problems Pin
Mark Salsbery5-Oct-07 7:48
Mark Salsbery5-Oct-07 7:48 
AnswerRe: ShowWindow Command Problems Pin
Beaon5-Oct-07 8:06
Beaon5-Oct-07 8:06 
GeneralRe: ShowWindow Command Problems Pin
Mark Salsbery5-Oct-07 8:11
Mark Salsbery5-Oct-07 8:11 
GeneralRe: ShowWindow Command Problems Pin
Beaon5-Oct-07 8:31
Beaon5-Oct-07 8:31 
Just minimizing to the tray, some tooltips, buttons. All standard stuff really. I've been following the stromcode tutorial but pulling what I want in my app as apposed to his portscanner.

I had wanted to have the client drop to the tray and post a balloon when someone messags you. My tray icon works but the apps tays in the taskbar as minimized.

Could it be my animation?

Heres everything I have in the minimize function

void ChatApp::miniMizeTray(const int icon)<br />
{<br />
	//We are checking to see if the user<br />
	//has turned off animations<br />
	ANIMATIONINFO anii;<br />
	anii.cbSize = sizeof(anii);<br />
	SystemParametersInfo(SPI_GETANIMATION, sizeof(anii), &anii, 0);<br />
<br />
	RECT desktopRect, thisWindowRect;<br />
	GetTrayWndRect(&desktopRect);<br />
	GetWindowRect(m_hWnd, &thisWindowRect);<br />
<br />
	if (anii.iMinAnimate)<br />
	{<br />
		//Animate Command<br />
		DrawAnimatedRects(m_hWnd, IDANI_CAPTION, &thisWindowRect, &desktopRect);<br />
	}<br />
<br />
	//Hide the Window completly<br />
	ShowWindow(m_hWnd, SW_HIDE);<br />
<br />
	//Show the notification icon<br />
	NOTIFYICONDATA nid;<br />
	ZeroMemory(&nid, sizeof(nid));<br />
	nid.cbSize				= sizeof(nid);<br />
	nid.hWnd				= m_hWnd;<br />
	nid.uID					= 0;<br />
	nid.uFlags				= NIF_ICON | NIF_MESSAGE | NIF_TIP | NIF_INFO;<br />
	nid.uCallbackMessage	= WM_USER;<br />
	nid.hIcon				= LoadIcon(m_hInstance, MAKEINTRESOURCE(icon));<br />
	nid.uTimeout			= 1000;<br />
	nid.dwInfoFlags			= NIIF_INFO;<br />
	lstrcpy(nid.szTip, "Double-Click To Maximize.");<br />
	lstrcpy(nid.szInfo, "ChatApp has been minimized to the system tray.\nClick this icon to restore the application.");<br />
	lstrcpy(nid.szInfoTitle, "Chat App");<br />
<br />
	Shell_NotifyIcon(NIM_ADD, &nid);<br />
}

If I dont get back to you today I will definately on Monday. I'm going to make another run through the code and see if I find anything. Ill come back in the afternoon to see if you guys have any ideas. Thanks for the help!

Cliff
GeneralRe: ShowWindow Command Problems Pin
Mark Salsbery5-Oct-07 9:50
Mark Salsbery5-Oct-07 9:50 
GeneralRe: ShowWindow Command Problems Pin
Beaon5-Oct-07 10:57
Beaon5-Oct-07 10:57 
GeneralRe: ShowWindow Command Problems Pin
David Crow6-Oct-07 3:35
David Crow6-Oct-07 3:35 
GeneralRe: ShowWindow Command Problems Pin
Beaon7-Oct-07 8:36
Beaon7-Oct-07 8:36 
AnswerRe: ShowWindow Command Problems [modified] Pin
Beaon8-Oct-07 3:31
Beaon8-Oct-07 3:31 
AnswerRe: ShowWindow Command Problems Pin
David Crow5-Oct-07 8:02
David Crow5-Oct-07 8:02 
GeneralRe: ShowWindow Command Problems Pin
Beaon5-Oct-07 8:20
Beaon5-Oct-07 8:20 
QuestionAnti-Grain question Pin
Richard Blythe5-Oct-07 4:29
Richard Blythe5-Oct-07 4:29 
AnswerRe: Anti-Grain question Pin
Maximilien5-Oct-07 5:35
Maximilien5-Oct-07 5:35 
QuestionProblems with CreateDesktop Pin
GauranG Shah5-Oct-07 4:17
GauranG Shah5-Oct-07 4:17 
QuestionVC8 and stingray DLL issue Pin
OmniX5-Oct-07 3:42
OmniX5-Oct-07 3:42 
QuestionSomething about CxImage class Pin
Jane1315-Oct-07 2:52
Jane1315-Oct-07 2:52 
QuestionRe: Something about CxImage class Pin
Hamid_RT5-Oct-07 3:01
Hamid_RT5-Oct-07 3:01 
AnswerRe: Something about CxImage class Pin
Jane1316-Oct-07 1:39
Jane1316-Oct-07 1:39 
GeneralRe: Something about CxImage class Pin
Hamid_RT6-Oct-07 19:24
Hamid_RT6-Oct-07 19:24 
GeneralRe: Something about CxImage class Pin
Jane13119-Oct-07 16:05
Jane13119-Oct-07 16:05 
GeneralRe: Something about CxImage class Pin
Hamid_RT21-Oct-07 19:38
Hamid_RT21-Oct-07 19:38 

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.