Click here to Skip to main content
15,929,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Resizing Pin
Christian Graus29-Nov-01 17:56
protectorChristian Graus29-Nov-01 17:56 
GeneralRe: Windows Resizing Pin
Mark Donkers29-Nov-01 18:01
Mark Donkers29-Nov-01 18:01 
GeneralRe: Windows Resizing Pin
Nish Nishant29-Nov-01 18:03
sitebuilderNish Nishant29-Nov-01 18:03 
GeneralRe: Windows Resizing Pin
Mark Donkers29-Nov-01 18:32
Mark Donkers29-Nov-01 18:32 
GeneralRe: Windows Resizing Pin
Christian Graus29-Nov-01 23:57
protectorChristian Graus29-Nov-01 23:57 
QuestionCAsyncSocket - Does OnReceive() get called multiple times? Pin
foobat29-Nov-01 16:44
foobat29-Nov-01 16:44 
AnswerRe: CAsyncSocket - Does OnReceive() get called multiple times? Pin
Masaaki Onishi29-Nov-01 17:50
Masaaki Onishi29-Nov-01 17:50 
GeneralSystem Tray Icon Problem Pin
Steve L.29-Nov-01 15:57
Steve L.29-Nov-01 15:57 
I have manged to get an icon to appear in my system try when i start my program. The problem is when i click it. Sometimes you need to right-click it twice to get the popup menu to come up, others times just once. How do i fix this?

This is the code i use to make the popup box popup:
int CMyClassDlg::OnTrayIconClick(LPARAM lParam)
{
switch(lParam)
{
case WM_RBUTTONDOWN:
<BR>	{
<BR><BR>	CPoint curPos;
<BR><BR>	GetCursorPos(&curPos);
<BR><BR>	CMenu mnuTop;
<BR><BR>	mnuTop.LoadMenu(IDR_MY_MENU );
<BR><BR>	CMenu* pPopup = mnuTop.GetSubMenu( 0 );
<BR><BR>	ASSERT_VALID( pPopup );
<BR><BR>	pPopup->TrackPopupMenu( TPM_LEFTALIGN | TPM_LEFTBUTTON, curPos.x, curPos.y, AfxGetMainWnd(), NULL);
<BR>	}
<BR>	break;
}
return 0;
}


Boredom
GeneralHelp :) Pin
RobJones29-Nov-01 15:23
RobJones29-Nov-01 15:23 
GeneralRe: Help :) Pin
Rick York29-Nov-01 15:47
mveRick York29-Nov-01 15:47 
GeneralRe: Help :) Pin
RobJones29-Nov-01 15:56
RobJones29-Nov-01 15:56 
GeneralRe: Help :) Pin
Nish Nishant29-Nov-01 16:10
sitebuilderNish Nishant29-Nov-01 16:10 
General[pure C] how to know if a FILE* is opened Pin
Stephane Routelous29-Nov-01 14:20
Stephane Routelous29-Nov-01 14:20 
GeneralRe: [pure C] how to know if a FILE* is opened Pin
Jon Sagara29-Nov-01 14:27
Jon Sagara29-Nov-01 14:27 
GeneralRe: [pure C] how to know if a FILE* is opened Pin
Stephane Routelous29-Nov-01 14:44
Stephane Routelous29-Nov-01 14:44 
GeneralRe: [pure C] how to know if a FILE* is opened Pin
Nish Nishant29-Nov-01 16:15
sitebuilderNish Nishant29-Nov-01 16:15 
GeneralBuilding MFC Classes Software Pin
Giancarlo Amati29-Nov-01 11:26
Giancarlo Amati29-Nov-01 11:26 
GeneralRe: Building MFC Classes Software Pin
Nish Nishant29-Nov-01 16:18
sitebuilderNish Nishant29-Nov-01 16:18 
GeneralRe: Building MFC Classes Software Pin
Michael P Butler29-Nov-01 22:45
Michael P Butler29-Nov-01 22:45 
GeneralSockets and Services Pin
sassiecode29-Nov-01 11:24
sassiecode29-Nov-01 11:24 
GeneralRe: Sockets and Services Pin
Ravi Bhavnani29-Nov-01 12:14
professionalRavi Bhavnani29-Nov-01 12:14 
GeneralOverriding the Save function Pin
Chambers29-Nov-01 9:00
Chambers29-Nov-01 9:00 
GeneralRe: Overriding the Save function Pin
Prem Kumar29-Nov-01 17:49
Prem Kumar29-Nov-01 17:49 
GeneralPrinting Dialog Boxes Pin
Gautam Deora29-Nov-01 8:40
Gautam Deora29-Nov-01 8:40 
GeneralRe: Printing Dialog Boxes Pin
Prem Kumar29-Nov-01 18:10
Prem Kumar29-Nov-01 18:10 

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.