我现在做好了一个基于SDI的程序,想把它做成在后台运行的,平时放在任务栏的托盘里,请问个位如何来进行,多谢了,麻烦详细一些,小弟刚刚入门!
解决方案 »
- 下拉列表添加选项导致系统运行错误
- 怎样阅读《MFC Windows 程序设计》?请高手指点
- 一个关于CCoolBar 的问题!!!很急,请高手进来看看!!!!!
- 瑞星2003的ID
- CCheckListBox类的消息映射问题
- 有关双机对连
- 日期时间计算期 要求精确到微秒
- 我在剪切板格式中找到html的一种格式。里面的中文好象都是用unicode的,知道怎么转化成AnsiString的
- 最高编程境界的程序员!是否应该是VC++程序员?
- 做一个学生成绩管理系统,请教初步的方案。
- 有用ATL开发基于WINDOWS标准控件的ACTIVEX控件经验的人吗?我有问题请教!
- 怎样避免使用MoveWindow移动控件后的晃动??
PNOTIFYICONDATA pnid // pointer to structure
);
ParametersdwMessageIdentifier of the message to send. This parameter can be one of these values:NIM_ADD Adds an icon to the status area.
NIM_DELETE Deletes an icon from the status area.
NIM_MODIFY Modifies an icon in the status area.
pnidPointer to a NOTIFYICONDATA structure. The content of the structure depends on the value of dwMessage. Return ValuesIf the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.//--------------------------------------------------------------------------Contains information that the system needs to process taskbar status area messages.typedef struct _NOTIFYICONDATA { // nid
DWORD cbSize;
HWND hWnd;
UINT uID;
UINT uFlags;
UINT uCallbackMessage;
HICON hIcon;
char szTip[64];
} NOTIFYICONDATA, *PNOTIFYICONDATA;
MemberscbSizeSize of the NOTIFYICONDATA structure.hWndHandle of the window that receives notification messages associated with an icon in the taskbar status area. uIDApplication-defined identifier of the taskbar icon.uFlagsArray of flags that indicate which of the other members contain valid data. This member can be a combination of these values:NIF_ICON The hIcon member is valid.
NIF_MESSAGE The uCallbackMessage member is valid.
NIF_TIP The szTip member is valid.
uCallbackMessageApplication-defined message identifier. The system uses the specified identifier for notification messages that it sends to the window identified by hWnd whenever a mouse event occurs in the bounding rectangle of the icon. hIconHandle of the icon to add, modify, or delete. szTipTooltip text to display for the icon.