我的DIALOG有 MINIMIZE BOX,点击标题拦上的“最小化”按狃"-"时可以最小化这个窗口,但是我想在最小化的同时把窗体放到 “系统托盘里“,同时不显示在任务栏里!但是我怎么也找不到最小化窗体时的代码区域。(PS:托盘代码我会写,关键是怎么在最小化窗口的时候写这些代码????)
解决方案 »
- 求助:H3C 802.1x(V3.60-E6208)兼容客户端的开发
- 关于pthreadVC.dll Packet.dll wpcap.dll等
- 创建List Control 时为什么会在编译成功之后,执行的时间出错呢?
- 求一条sql语句 让某个特定作者的发的帖子放到当天的最后
- 加密算法
- 怎样解决error LNK2001: unresolved external symbol
- 右键菜单加图片实现原理
- 女子跆拳道67公斤级以上轻松夺金卫冕,散分!
- 原来是基于对话框的程序,现在希望在按键响应后能有生成多文档的效果,怎么办勒?
- 请教:如何使一个变量在某一时刻只被一处访问?
- 大家随便聊,我给分(4)
- 散分
{
// TODO: Add your specialized code here and/or call the base class
if(message == WM_SYSCOMMAND)
{
if(wParam == SC_MINIMIZE)
AfxMessageBox("SC_MINIMIZE");
else if(wParam == SC_RESTORE)
AfxMessageBox("SC_RESTORE");
} return CYourDlg::WindowProc(message, wParam, lParam);
}
The WM_SIZE message is sent to a window after its size has changed. A window receives this message through its WindowProc function. LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_SIZE
WPARAM wParam, // resizing flag
LPARAM lParam // client area
);
Parameters
wParam
Specifies the type of resizing requested. This parameter can be one of the following values. Value Meaning
SIZE_MAXHIDE Message is sent to all pop-up windows when some other window is maximized.
SIZE_MAXIMIZED The window has been maximized.
SIZE_MAXSHOW Message is sent to all pop-up windows when some other window has been restored to its former size.
SIZE_MINIMIZED The window has been minimized.
SIZE_RESTORED The window has been resized, but neither the SIZE_MINIMIZED nor SIZE_MAXIMIZED value applies.
lParam
The low-order word of lParam specifies the new width of the client area.
The high-order word of lParam specifies the new height of the client area.