Click here to Skip to main content
15,899,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SelectObject() Rules Pin
Obliterator9-Jul-02 23:14
Obliterator9-Jul-02 23:14 
GeneralRe: SelectObject() Rules Pin
Anonymous10-Jul-02 11:33
Anonymous10-Jul-02 11:33 
GeneralCopy from Screen to Bitmap Pin
NickOne9-Jul-02 6:29
NickOne9-Jul-02 6:29 
GeneralRe: Copy from Screen to Bitmap Pin
Chris Losinger9-Jul-02 8:01
professionalChris Losinger9-Jul-02 8:01 
GeneralRe: Copy from Screen to Bitmap Pin
Ernest Laurentin9-Jul-02 8:32
Ernest Laurentin9-Jul-02 8:32 
GeneralSystem tray Pin
Anonymous9-Jul-02 5:33
Anonymous9-Jul-02 5:33 
GeneralRe: System tray Pin
Joaquín M López Muñoz9-Jul-02 5:41
Joaquín M López Muñoz9-Jul-02 5:41 
GeneralRe: System tray Pin
Renjith Ramachandran10-Jul-02 1:26
Renjith Ramachandran10-Jul-02 1:26 
yaa it is easy


NOTIFYICONDATA gl_sNotifyIconData;

gl_sNotifyIconData.cbSize=sizeof(NOTIFYICONDATA);
strcpy(gl_sNotifyIconData.szTip,"your Tool tip here");
gl_sNotifyIconData.uID=FTPTRAYID;
gl_sNotifyIconData.hIcon=AfxGetApp()->LoadIcon(ID of ur tray ICON);
gl_sNotifyIconData.uCallbackMessage=the Message ID of ur app here;
gl_sNotifyIconData.hWnd=this->m_hWnd;
gl_sNotifyIconData.uFlags=NIF_ICON|NIF_MESSAGE|NIF_TIP;


Shell_NotifyIcon(NIM_ADD,&gl_sNotifyIconData);

this will put the icon in to your system tray
and everythime u enter mouse over it it post some messages

so it is necessery to trap the message
by adding the ON_MESSAGE(messageID,onmessage) in your messagemap

and add a function like
onmessage(WPARAM wparam,LPARAM lparam)
{
wparam contains the trayID
and lparam caontains the message
handle them according to ur need


}

Renjith-CPian.
GeneralDialog controls Pin
Anonymous9-Jul-02 5:31
Anonymous9-Jul-02 5:31 
GeneralRe: Dialog controls Pin
Joaquín M López Muñoz9-Jul-02 5:38
Joaquín M López Muñoz9-Jul-02 5:38 
GeneralRe: Dialog controls Pin
Anonymous9-Jul-02 5:51
Anonymous9-Jul-02 5:51 
GeneralRe: Dialog controls Pin
Prem Kumar9-Jul-02 5:42
Prem Kumar9-Jul-02 5:42 
GeneralRe: Dialog controls Pin
benjymous9-Jul-02 6:02
benjymous9-Jul-02 6:02 
GeneralRe: Dialog controls Pin
Prem Kumar9-Jul-02 7:26
Prem Kumar9-Jul-02 7:26 
GeneralFiletype icon association Pin
Brind_Foin9-Jul-02 5:01
Brind_Foin9-Jul-02 5:01 
GeneralRe: Filetype icon association Pin
Joaquín M López Muñoz9-Jul-02 5:17
Joaquín M López Muñoz9-Jul-02 5:17 
GeneralRe: Filetype icon association Pin
Brind_Foin9-Jul-02 5:22
Brind_Foin9-Jul-02 5:22 
GeneralVisual Studio 6 Pin
mhamsa9-Jul-02 4:55
mhamsa9-Jul-02 4:55 
GeneralRe: Visual Studio 6 Pin
benjymous9-Jul-02 6:08
benjymous9-Jul-02 6:08 
GeneralInnoSetup Pin
rrrado9-Jul-02 4:28
rrrado9-Jul-02 4:28 
GeneralRe: InnoSetup Pin
Roger Allen9-Jul-02 5:21
Roger Allen9-Jul-02 5:21 
GeneralRe: InnoSetup Pin
rrrado9-Jul-02 5:38
rrrado9-Jul-02 5:38 
GeneralRe: InnoSetup Pin
S van Leent9-Jul-02 10:14
S van Leent9-Jul-02 10:14 
GeneralRe: InnoSetup Pin
Jeremy Falcon9-Jul-02 6:02
professionalJeremy Falcon9-Jul-02 6:02 
Generalconversion Pin
Rage9-Jul-02 3:59
professionalRage9-Jul-02 3:59 

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.