Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreating forms for outlook with C++ Pin
Anonymous5-Nov-03 22:04
Anonymous5-Nov-03 22:04 
GeneralGlobal variables???? VC++ 6.0 Pin
Anonymous5-Nov-03 21:03
Anonymous5-Nov-03 21:03 
GeneralRe: Global variables???? VC++ 6.0 Pin
Ted Ferenc5-Nov-03 21:56
Ted Ferenc5-Nov-03 21:56 
GeneralRe: Global variables???? VC++ 6.0 Pin
geo_m6-Nov-03 5:38
geo_m6-Nov-03 5:38 
GeneralRe: Global variables???? VC++ 6.0 Pin
David Chamberlain6-Nov-03 6:05
David Chamberlain6-Nov-03 6:05 
GeneralCProgressCtrl + Threads Pin
KKR5-Nov-03 19:35
KKR5-Nov-03 19:35 
GeneralRe: CProgressCtrl + Threads Pin
valikac6-Nov-03 5:46
valikac6-Nov-03 5:46 
GeneralProblems in changing TrayIcon Pin
Boby.George5-Nov-03 18:52
professionalBoby.George5-Nov-03 18:52 
I have problem in Changing the tray icon.I am using two class.
1.CTrayMenu and 2.CConnectionMgr.
In WinMain(server) I create an instance of CTrayMenu Icon and started the trayicon when program begins
But I can't change the tray icon when client connected to server.I want to modify the tray icon.
here is some part of my code...
Main Program
----------------
HANDLE mainHandle;
mainHandle = CreateSemaphore(NULL,0,1,NULL);
CTrayMenu *TrayMnu = new CTrayMenu(hInstance);
TrayMnu->start();
TrayMnu->m_pConnectionMgr = new CConnectionMgr(hInstance, mainHandle);
CTrayMenu Class
-----------------
void CTrayMenu::SendTrayMsg(DWORD msg, BOOL flash)
{
// Create the tray icon message
m_nid.hWnd = m_hwnd;
m_nid.cbSize = sizeof(m_nid);
m_nid.uID = IDI_WINTRAY; // never changes after construction
m_nid.hIcon = flash ? m_flash_icon : m_tray_icon;
m_nid.uFlags = NIF_ICON | NIF_MESSAGE;
m_nid.uCallbackMessage = WM_TRAYNOTIFY;
if (LoadString(hAppInstance, IDI_WINTRAY, m_nid.szTip, sizeof(m_nid.szTip)))
{
m_nid.uFlags |= NIF_TIP;
}

// Send the message
if (Shell_NotifyIcon(msg, &m_nid))
{
// Set the enabled/disabled state of the menu items

}
}




What will I do?
Help me...........
Thanks


boby
GeneralRead a jpeg file Pin
Abhi@Work5-Nov-03 18:16
Abhi@Work5-Nov-03 18:16 
GeneralRe: Read a jpeg file Pin
algol5-Nov-03 21:51
algol5-Nov-03 21:51 
GeneralRe: Read a jpeg file Pin
Joe Woodbury6-Nov-03 10:45
professionalJoe Woodbury6-Nov-03 10:45 
GeneralRe: Read a jpeg file Pin
Abhi@Work6-Nov-03 23:09
Abhi@Work6-Nov-03 23:09 
QuestionIs there any expert who can answer this question in this world? Pin
percyvimal5-Nov-03 18:15
percyvimal5-Nov-03 18:15 
AnswerRe: Is there any expert who can answer this question in this world? Pin
melwyn5-Nov-03 23:37
melwyn5-Nov-03 23:37 
AnswerRe: Is there any expert who can answer this question in this world? Pin
inocraM6-Nov-03 3:02
inocraM6-Nov-03 3:02 
GeneralRe: Is there any expert who can answer this question in this world? Pin
percyvimal6-Nov-03 16:59
percyvimal6-Nov-03 16:59 
Generalas soon as possible be come good Programmer ! Pin
quyetnh5-Nov-03 17:11
quyetnh5-Nov-03 17:11 
GeneralRe: as soon as possible be come good Programmer ! Pin
papaya_zm5-Nov-03 17:45
papaya_zm5-Nov-03 17:45 
GeneralRe: as soon as possible be come good Programmer ! Pin
paracha35-Nov-03 17:48
paracha35-Nov-03 17:48 
GeneralRe: as soon as possible be come good Programmer ! Pin
quyetnh6-Nov-03 14:15
quyetnh6-Nov-03 14:15 
GeneralCore sdk problems Pin
schezz5-Nov-03 17:10
schezz5-Nov-03 17:10 
QuestionHow to make a wizard for embeded vc4?? Pin
fftongzhi5-Nov-03 15:48
fftongzhi5-Nov-03 15:48 
GeneralFinal help please, everyone i know what i want to know this TIME!!!! Pin
Snyp5-Nov-03 15:42
Snyp5-Nov-03 15:42 
GeneralRe: Final help please, everyone i know what i want to know this TIME!!!! Pin
Maxwell Chen5-Nov-03 16:36
Maxwell Chen5-Nov-03 16:36 
GeneralRe: Final help please, everyone i know what i want to know this TIME!!!! Pin
Snyp6-Nov-03 14:05
Snyp6-Nov-03 14:05 

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.